From ae6ff90084aecb0ccf6c5b85d075695268164f1a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 2 Oct 2020 13:24:43 +0300 Subject: fix: backup script --- ansible/roles/holywood2/files/borg-all | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ansible/roles/holywood2') diff --git a/ansible/roles/holywood2/files/borg-all b/ansible/roles/holywood2/files/borg-all index 78db6eb..55a9eb4 100755 --- a/ansible/roles/holywood2/files/borg-all +++ b/ansible/roles/holywood2/files/borg-all @@ -3,16 +3,19 @@ ts="$(date +%Y-%m-%dT%H:%M:%S)" echo "Backing up /mnt/soile to nalanda" -./run-borg liw-holywood@nalanda.liw.fi /home/liw-holywood/repo \ +./run-borg liw-holywood@nalanda /home/liw-holywood/repo \ create --stats ::"soile-$ts)" /mnt/soile/ +echo echo "Backing up /mnt/media to nalanda" -./run-borg liw-holywood@nalanda.liw.fi /home/liw-holywood/repo \ +./run-borg liw-holywood@nalanda /home/liw-holywood/repo \ create --stats ::"media-$ts)" /mnt/media/ +echo echo "Pruning nalanda" -echo ./run-borg liw-holywood@nalanda.liw.fi /home/liw-holywood/repo \ +echo ./run-borg liw-holywood@nalanda /home/liw-holywood/repo \ prune --keep-with 100d +echo echo "Backup finished" -- cgit v1.2.1