temip_mir_backup(1) — Commands
NAME
temip_mir_backup − TeMIP Framework online MIR backup tool
SYNOPSIS
temip_mir_backup [-v] MIRname_1 ... MIRname_n target_dir
DESCRIPTION
The temip_mir_backup command is used to atomically on-line backup a set of TeMIP framework Management Information Repository (MIR) files : − Atomically, the tool warranty that no files is modified during the save-copy. − On-line, the tool doesn’t require to stop the TeMIP framework platform.
During the call, the tool shared lock the setof MIR files passed in arguments, and copy these files in the provided destination directory.
Once copied, the related MIR logging-transaction log file of each MIR files is cleaned-up (size reset to zero), and two timestamped files per MIR file, are created :
− One in the MIR logging-transaction log directory (/var/mcc/mir_log by default), and
− the second one in the destination directory.
These timestamped files will be used by the temip_mir_recover utility in case of recover.
FLAGS
The following options are interpreted by temip_mir_backup :
-h
verbose mode (optional).
ARGUMENTS
The following arguments are requested by temip_mir_backup :
MIRname_1..MIRname_n
set of MIR Cisam files to save (fullpathname without the extension file).
target_dir
target directory where the MIR files are to be copied.
RETURN VALUES
Upon successful completion, the temip_cisam_backup tool exits with a null status. Otherwise, a value of -1 is returned.
EXAMPLES
temip_mir_backup /var/mcc/dDNS_d /var/mcc/iDNS_i /backupdir
copy /var/mcc/dDNS_d.[dat.idx] and /var/mcc/iDNS_i.[dat.idx] MIR files in the /backupdir directory.
In the backup directory (/backupdir), the following files are created : -rw-rw-rw- 7168 Jun 26 17:12 iDNS_i.dat -rw-rw-rw- 13312 Jun 26 17:12 iDNS_i.idx -rw-rw-rw- 10240 Jun 27 15:01 dDNS_d.idx -rw-rw-rw- 5120 Jun 27 15:01 dDNS_d.dat -rw-rw-rw- 33 Jun 27 17:45 iDNS_i.log.backuptime -rw-rw-rw- 33 Jun 27 17:45 dDNS_d.log.backuptime
While in the default MIR transaction-loggin directory (/var/mcc/mir_log) , the log files are cleaned up, and two new files are created : -rw-rw-rw- 0 Jun 27 17:45 iDNS_i.log -rw-rw-rw- 0 Jun 27 17:45 dDNS_d.log -rw-rw-rw- 33 Jun 27 17:45 iDNS_i.log.backuptime -rw-rw-rw- 33 Jun 27 17:45 dDNS_d.log.backuptime
NOTES
When the Normal logging mode has been selected during the temip_setup, the temip_mir_backup, as well as the temip_backup tool, are to be used in order to purge all the Management Information Repository logging files, located in the /var/mcc/mir_log.
SEE ALSO
mcc_intro(1), temip_mir_restore(1), temip_mir_recover(1), temip_backup(1) temip_cisam_check(1)
TeMIP Framework Configuration and Management Guide
TeMIP Utilities