Purging Backups

From The Open Source Backup Wiki (Amanda, MySQL Backup, BackupPC)
Jump to navigationJump to search
  • Purging of Backup sets that have gone past their retention date happens automatically.
  • There is nothing for the system administrator to configure for this action to happen.
  • Everyday at 4 AM ZRM for MySQL will run and purge all backup sets that have gone past the retention date.
  • The default time when purge will run can be configured in the scheduler utility.

Purge Action

mysql-zrm  --action purge --destination <directory name> 

destination specifies the directory where backups are stored. Default location is /var/lib/mysql-zrm/. If this option is specified and the directory must be exist and should be writable by the ZRM for MySQL user.

When purge action is specified, all backups whose retention has been exceeded the retention date in the backup directory specified by the destination option are immediately purged.