2019-09-08 14:20:20 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# GPG key must be imported
|
|
|
|
|
|
|
|
DATE=$(date --iso-8601)
|
|
|
|
FINGERPRINT=1807F8D422B89582ADEC4A790B1A6ED3E577B121
|
|
|
|
SERVICE_PATH=/home/paul/scripts/fogcutter/docker
|
|
|
|
BACKUP_PATH=/bigdata/backups
|
|
|
|
|
|
|
|
|
2019-09-08 20:04:12 -04:00
|
|
|
tar czf "$BACKUP_PATH"/minecraft-data-"$DATE".tar.gz -C "$SERVICE_PATH"/minecraft ./minecraft-data
|
2019-09-08 14:20:20 -04:00
|
|
|
|
2019-09-08 16:17:15 -04:00
|
|
|
tar cz -C "$SERVICE_PATH"/syncthing ./syncthing-sync | gpg -e -r $FINGERPRINT -o "$BACKUP_PATH"/syncthing-sync-"$DATE".tar.gz.gpg
|