diff --git a/roles/kde-backup/templates/backup-fiesta.sh b/roles/kde-backup/templates/backup-fiesta.sh index b6b9bf6..c299923 100755 --- a/roles/kde-backup/templates/backup-fiesta.sh +++ b/roles/kde-backup/templates/backup-fiesta.sh @@ -1,16 +1,16 @@ LOCATION=/root/{{backup_directory}} +# Secure the backups +umask 0077 + # Cleanup old backups find $LOCATION/ -name '*gz' -mtime +7 | xargs rm -f # Grab a list of system packages and the system configuration dpkg -l > $LOCATION/dpkg.`date +%w` tar -czf $LOCATION/crontabs.`date +%w`.tgz -C / var/spool/cron/ tar -czf $LOCATION/etc.`date +%w`.tgz -C / etc/ -# Secure the backups -chmod -R 700 $LOCATION - # Send them off to the backup server cd $LOCATION/.. rsync --timeout=600 --delete -a backup -4 {{gohma_backup_user}}@micrea.kde.org: