MANAGE v2.6
The MANAGE
subcommand can be invoked to:
- Evaluate backups, mark their status, and delete obsolete backups based on the
retention_policy
parameter in the BART configuration file. - Compress the archived WAL files based on the
wal_compression
parameter in the BART configuration file.
Syntax:
To view detailed information about the MANAGE
subcommand and retention policy management, see the EDB Backup and Recovery User Guide. For information about setting the wal_compression
parameter, see the EDB Backup and Recovery Installation and Upgrade Guide. These guides are available at the EDB website.
The following table describes the MANAGE
options:
Options | Description |
---|---|
-s [ <server_name> | all ] --server [ <server_name> | all ] | <server_name> is the name of the database server to which the MANAGE actions are to be applied.If all is specified or if the -s option is omitted, actions are applied to all database servers. |
-l --list-obsolete | Lists the backups marked as obsolete. |
-d --delete-obsolete | Deletes the backups marked as obsolete. This action physically deletes the backup along with its archived WAL files and any MBM files for incremental backups. |
-c { keep | nokeep } --change-status { keep | nokeep } | Specify keep to change the backup status to keep to retain the backup indefinitely.Specify nokeep to change the backup status back to active . You can then re-evaluate and possibly mark the backup as obsolete (according to the retention policy) using the MANAGE subcommand.The -c option can only be used with the -i option. |
-i {<backup_id> | <backup_name> | all }--backupid {<backup_id> | <backup_name> | all } | <backup_id> is a backup identifier and <backup_name> is the user-defined alphanumeric name for the backup.If all is specified, actions are applied to all backups.The -i option can only be used with the -c option. |
-n --dry-run | Performs the test run and displays the results prior to actually implementing the actions as if the operation was performed, however, no changes are actually made. If you specify -n with the -d option, it displays which backups would be deleted, but does not actually delete the backups.If you specify -n with the -c option, it displays the keep or nokeep action, but does not actually change the backup status.If you specify -n alone with no other options or if you specify -n with only the -s option, it displays which active backups would be marked as obsolete, but does not actually change the backup status. In addition, no compression is performed on uncompressed, archived WAL files even if WAL compression is enabled for the database server. |
Example
The following code sample performs a dry run for the specified database server displaying which active backups are evaluated as obsolete according to the retention policy, but does not actually change the backup status:
The following code sample marks active backups as obsolete according to the retention policy for the specified database server:
The following code sample lists backups marked as obsolete for the specified database server:
The following code sample deletes the obsolete backups for the specified database server:
The following code sample changes the specified backup to keep status to retain it indefinitely:
The following code sample resets the specified backup to active status:
The following code sample uses the enabled wal_compression
parameter in the BART configuration file as shown by the following:
When the MANAGE
subcommand is invoked, the following message is displayed indicating that WAL file compression is performed:
The following code sample shows the archived WAL files in compressed format: