new computer, who dis?
This commit is contained in:
parent
f453eed9e0
commit
f23e8f5e65
5 changed files with 14 additions and 66 deletions
|
@ -15,39 +15,7 @@ do
|
|||
done
|
||||
|
||||
# Do a backup.
|
||||
(
|
||||
rsync -zaAP --numeric-ids --delete --relative \
|
||||
--rsync-path="/usr/bin/rsync --fake-super" \
|
||||
-e "ssh" --delete-excluded \
|
||||
--exclude "/home/kunsi/.cache/" \
|
||||
--exclude "/home/kunsi/.config/Ferdi/" \
|
||||
--exclude "/home/kunsi/.config/Rambox/" \
|
||||
--exclude "/home/kunsi/.local/lib/python*/site-packages/" \
|
||||
--exclude "/home/kunsi/.local/share/TelegramDesktop/tdata/user_data/cache/" \
|
||||
--exclude "/home/kunsi/.local/share/sddm/" \
|
||||
--exclude "/home/kunsi/.mozilla/firefox/*/storage/*" \
|
||||
--exclude "/home/kunsi/.npm/" \
|
||||
--exclude "/home/kunsi/.nvm/" \
|
||||
--exclude "/home/kunsi/.platformio/" \
|
||||
--exclude "/home/kunsi/.ssh/cm-*" \
|
||||
--exclude "/home/kunsi/.vdirsyncer" \
|
||||
--exclude "/home/kunsi/Downloads/" \
|
||||
--exclude "/home/kunsi/Schreibtisch/" \
|
||||
--exclude "/home/kunsi/VirtualBox VMs/" \
|
||||
--exclude "/home/kunsi/qemu/Windows_10.qcow2" \
|
||||
--exclude "/home/kunsi/tmp.*/" \
|
||||
"/home/kunsi" "$backup_ssh":backups/
|
||||
|
||||
# Exit code 24 means some files have vanished during rsync.
|
||||
# I don't know why, but this is very common, apparently?
|
||||
exitcode=$?
|
||||
if [[ $exitcode != 0 ]] && [[ $exitcode != 24 ]]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
)
|
||||
ssh $backup_ssh "sudo /usr/local/bin/rotate-single-backup-client kunsi-t470"
|
||||
|
||||
sudo /usr/local/bin/generate-backup-with-retries
|
||||
printf '\a'
|
||||
|
||||
# Do updates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue