Remove sync script as it is too complicated to maintain across all OSes.

This commit is contained in:
xpetit 2021-03-06 13:41:28 +01:00
parent b753b93cd0
commit 1d1afb4d82
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
1 changed files with 0 additions and 38 deletions

View File

@ -1,38 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
IFS='
'
if ! test -d "$HOME/VirtualBox VMs"; then
echo "Is VirtualBox installed ? Could not find $HOME/VirtualBox VMs"
exit 1
fi
if pgrep VirtualBox >/dev/null; then
echo Close VirtualBox before updating debian-01 Virtual Machine
exit 1
fi
key_file=$(mktemp)
cat <<'EOF'> "$key_file"
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACAeqfcTKSukPU9D1pmO2v7EeaTefBMlr84RAKfjR3xlwgAAAJDSLNAv0izQ
LwAAAAtzc2gtZWQyNTUxOQAAACAeqfcTKSukPU9D1pmO2v7EeaTefBMlr84RAKfjR3xlwg
AAAEB8CYX9ExfuZx3Uw7otY3CIa2G+5K71Zu3iPn/97LXInB6p9xMpK6Q9T0PWmY7a/sR5
pN58EyWvzhEAp+NHfGXCAAAADWFzc2V0c0BzZXJ2ZXI=
-----END OPENSSH PRIVATE KEY-----
EOF
rsync \
--archive \
--delete \
--compress \
--compress-choice lz4 \
--info=progress2 \
--rsh="ssh -oIdentitiesOnly=yes -p521 -i$key_file" \
assets@assets.01-edu.org:debian-01 "$HOME/VirtualBox VMs"
echo "debian-01 successfully updated"