diff --git a/roles/kde-backup/templates/backup-bluemchen.sh b/roles/kde-backup/templates/backup-bluemchen.sh index 7a56bf9..95e3ceb 100755 --- a/roles/kde-backup/templates/backup-bluemchen.sh +++ b/roles/kde-backup/templates/backup-bluemchen.sh @@ -1,23 +1,23 @@ LOCATION=/root/{{backup_directory}} # Cleanup old backups... find $LOCATION -name '*gz' -mtime +7 | xargs rm -f # Grab software we've installed tar -czf $LOCATION/srv-files-bluemchen.`date +%w`.tgz -C / srv/ # Grab the system config, package listing and crontabs tar -czf $LOCATION/etc.`date +%w`.tgz -C / etc/ tar -czf $LOCATION/crontabs.`date +%w`.tgz -C / var/spool/cron/ -tar -czf $LOCATION/root-bin-bluemchen.`date +%w`.tgz -C / root/bin/ root/hetzner/ +tar -czf $LOCATION/root-bin-bluemchen.`date +%w`.tgz -C / root/bin/ dpkg -l > $LOCATION/dpkg.`date +%w` # Secure the backups chmod -R 700 $LOCATION # Transfer them to the backup server cd $LOCATION/.. rsync --timeout=600 --delete -a backup {{gohma_backup_user}}@gohma.kde.org: # Also backup home directories. As they're quite large we just transfer them directly rsync --timeout=600 --delete -a /home/ {{gohma_backup_user}}@gohma.kde.org:~/homes/