Compare commits
2 commits
e2ec525831
...
3fa132b42a
Author | SHA1 | Date | |
---|---|---|---|
Franzi | 3fa132b42a | ||
Franzi | f721f26ef2 |
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
|
|
||||||
|
backup_ssh="kunsi-t470@backup-kunsi.htz-hel.kunbox.net"
|
||||||
|
|
||||||
# Push some git repos
|
# Push some git repos
|
||||||
pass git push
|
pass git push
|
||||||
git --git-dir=$HOME/.cfg/ --work-tree=$HOME push
|
git --git-dir=$HOME/.cfg/ --work-tree=$HOME push
|
||||||
|
@ -13,6 +15,7 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Do a backup.
|
# Do a backup.
|
||||||
|
ssh $backup_ssh "sudo /usr/local/bin/rotate-single-backup-client kunsi-t470"
|
||||||
(
|
(
|
||||||
rsync -zaAP --numeric-ids --delete --relative \
|
rsync -zaAP --numeric-ids --delete --relative \
|
||||||
--rsync-path="/usr/bin/rsync --fake-super" \
|
--rsync-path="/usr/bin/rsync --fake-super" \
|
||||||
|
@ -34,7 +37,7 @@ done
|
||||||
--exclude "/home/kunsi/VirtualBox VMs/" \
|
--exclude "/home/kunsi/VirtualBox VMs/" \
|
||||||
--exclude "/home/kunsi/qemu/Windows_10.qcow2" \
|
--exclude "/home/kunsi/qemu/Windows_10.qcow2" \
|
||||||
--exclude "/home/kunsi/tmp.*/" \
|
--exclude "/home/kunsi/tmp.*/" \
|
||||||
"/home/kunsi" "kunsi-t470@htz-hel.backup-kunsi":backups/
|
"/home/kunsi" "$backup_ssh":backups/
|
||||||
|
|
||||||
# Exit code 24 means some files have vanished during rsync.
|
# Exit code 24 means some files have vanished during rsync.
|
||||||
# I don't know why, but this is very common, apparently?
|
# I don't know why, but this is very common, apparently?
|
||||||
|
|
|
@ -10,6 +10,9 @@ Host qzwi
|
||||||
HostName 31.47.232.108
|
HostName 31.47.232.108
|
||||||
LocalForward 3389 localhost:389
|
LocalForward 3389 localhost:389
|
||||||
|
|
||||||
|
Host qzwi-backup
|
||||||
|
HostName 2a01:4f9:6b:2d99::28:6:1969
|
||||||
|
|
||||||
Host proxmox-backupstorage
|
Host proxmox-backupstorage
|
||||||
HostName 2a01:4f9:6b:2d99::2
|
HostName 2a01:4f9:6b:2d99::2
|
||||||
User root
|
User root
|
||||||
|
|
Loading…
Reference in a new issue