Mysql-zrm-manage-backup

From wiki.zmanda.com
Revision as of 22:07, 26 November 2008 by Paddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

NAME

mysql-zrm-manage-backup - Utility to manage on-line (quick) snapshot backups created with the ’’’mysql-zrm-backup --backup-type quick’’’ option.

SYNOPSIS

   mysql-zrm-manage-backup
                      [--convert-to-regular|--mount-snapshots|--remove-backup
                      [--source-directory directory_name]
                      [--backup-set name]
                      [--options-file conf_file]
                      [--tmpdir temp_directory]
                      [--quiet|--no-quiet]
                      [--verbose]
                      [--help]

DESCRIPTION

Use this utility to convert on-line (quick) snapshot-based backups (created with the ’’’mysql-zrm-backup --backup-type quick’’’ option) to standard (near-line) ZRM for MySQL archive, or to remove unwanted quick backups from the MySQL server. It is not possible to convert a standard ZRM for MySQL backup archive to a quick backup.

OPTIONS

--convert-to-regular|--mount-snapshots|--remove-backup
The --convert-to-regular option converts a quick snapshot backup (created with the ’’’mysql-zrm-backup --backup-type quick’’’ option) to a standard backup. It does this by copying the data from the snapshot to the ZRM server destination directory and then deleting the snapshot. The --remove-backup option simply removes the backup without copying the data first. The --mount-snapshots option is provided as a convenience; use it to mount a snapshot volume that has been inadvertently unmounted (such as when a server has been rebooted).
--source-directory directory_name]
Specifies the quick snapshot-based backup to be managed.
--backup-set name
Specify the backup-set. The default value is BackupSet1. If such a value is already present, it will be used.
--options-file conf_file
Set the file along with full pathname that contains mysql-zrm-backup configuration options; this file has the same format as mysql-zrm.conf(5).
--tmpdir temp_dir
Full path of the directory to be used for storing temporary files and directories on the backup host. If not specified it defaults to the system specified temporary directory on the backup host, e.g. /tmp.
--quiet|--no-quiet
Choose --quiet to suppress display of log messages on stdout. Choose no-quiet to display the log messages stdout. Default is --no-quiet.
--verbose
Provide verbose output in the log. Default is that verbose is turned off and a terse output is generated.
--help
Displays the help message and exits. This command line only parameter cannot be specified in the configuration file.

FILES

/var/lib/mysql-zrm
Directory under which all backup data is stored.
/etc/mysql-zrm/backup set name/mysql-zrm.conf
The ZRM for MySQL configuration file.

RETURN VALUES

On success, zero is returned. On error, a non-zero value is returned.

SEE ALSO

mysql-zrm(1), mysql-zrm-backup(1), mysql-zrm-manage-backup(1), mysql-zrm-restore(1), mysql-zrm-check(1), mysql-zrm-list(1), mysql-zrm-getconf(1), mysql-zrm-parse-binlogs(1), mysql-zrm-purge(1), mysql-zrm-verify-backup(1), mysql-zrm-abort-backup(1), mysql-zrm-scheduler(1), mysql-zrm-reporter(1), mysql-zrm.conf(5), mysqldump(1), mysqlbinlog(1), mysql(1), lvm(8),