diff --git a/bigdummy/backup.sh b/bigdummy/backup.sh deleted file mode 100755 index 06708dc..0000000 --- a/bigdummy/backup.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# GPG key must be imported - -DATE=$(date --iso-8601) -FINGERPRINT=1807F8D422B89582ADEC4A790B1A6ED3E577B121 -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/ -rclone copy --progress /bigdata/backups/ vt-gdrive:PEW-BACKUPS/ diff --git a/fogcutter/backup.sh b/fogcutter/backup.sh deleted file mode 100755 index 9d1475c..0000000 --- a/fogcutter/backup.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# GPG key must be imported - -DATE=$(date --iso-8601) -FINGERPRINT=1807F8D422B89582ADEC4A790B1A6ED3E577B121 -SERVICE_PATH=/home/paul/scripts/fogcutter/docker -BACKUP_PATH=/bigdata/backups - - -tar czf "$BACKUP_PATH"/minecraft-data-"$DATE".tar.gz -C "$SERVICE_PATH"/minecraft ./minecraft-data - -tar cz -C "$SERVICE_PATH"/syncthing ./syncthing-sync | gpg -e -r $FINGERPRINT -o "$BACKUP_PATH"/syncthing-sync-"$DATE".tar.gz.gpg