diff --git a/borg_backup.sh b/borg_backup.sh index 7fb7579..ca25d89 100755 --- a/borg_backup.sh +++ b/borg_backup.sh @@ -15,25 +15,26 @@ info "Starting backup" # Backup the most important directories into an archive named after # the machine this script is currently running on: -borg create \ - --verbose \ - --filter AME \ - --list \ - --stats \ - --show-rc \ - --compression lz4 \ - --exclude-caches \ - --exclude '/home/*/.cache/*' \ - --exclude '/var/cache/*' \ - --exclude '/var/tmp/*' \ - --exclude '/share/media*' \ - \ - ::'{hostname}-{now}' \ - /etc \ - /home \ - /root \ - /var \ - /usr/local \ +borg create \ + --verbose \ + --filter AME \ + --list \ + --stats \ + --show-rc \ + --compression lz4 \ + --exclude-caches \ + --exclude '/home/*/.cache/*' \ + --exclude '/var/cache/*' \ + --exclude '/var/tmp/*' \ + --exclude '/share/media/*' \ + --exclude '/var/lib/libvirt/images/*' \ + \ + ::'{hostname}-{now}' \ + /etc \ + /home \ + /root \ + /var \ + /usr/local \ backup_exit=$?