From d385bc6aa186e47c569b3f16fd3b6e818f385a53 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sun, 8 Sep 2019 20:19:15 -0400 Subject: [PATCH] backup bigdummy --- bigdummy/backup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bigdummy/backup.sh b/bigdummy/backup.sh index e498985..be26ed3 100755 --- a/bigdummy/backup.sh +++ b/bigdummy/backup.sh @@ -8,6 +8,14 @@ ARCHIVE_PATH=/bigdata/archive SERVICE_PATH=/home/paul/scripts/bigdummy/docker BACKUP_PATH=/bigdata/backups +# Local backups if [ ! -f "$BACKUP_PATH"/linuxjournal.tar.gz ]; then tar czf "$BACKUP_PATH"/linuxjournal.tar.gz -C "$ARCHIVE_PATH" ./linuxjournal fi + + +# Remote backups +## Media +rsync -avz -e "ssh -i /home/paul/.ssh/id_rsa_fast" --progress /bigdata/media/music/ pew-media@dirtycow.vtluug.org:/nfs/cistern/share/media/music/pew-media/ +## Misc +rsync -avz -e "ssh -i /home/paul/.ssh/id_rsa_fast" --progress /bigdata/backups/ pew-media@dirtycow.vtluug.org:/nfs/cistern/home/pew-media/PEW-BACKUPS