Example:
$ mupip backup -bytestream REPTILES,BIRDS bkup
Suppose that the environment variable gtmgbldir has regions REPTILES and BIRDS that map to files called REPTILES.DAT and BIRDS.DAT (no matter which directory or directories the files reside in). Then the above example creates bytestream backup files REPTILES.DAT and BIRDS.DAT in the bkup directory since the last DATABASE backup.
Example:
$ mupip backup -bkupdbjnl="OFF" "*"
This command turns off journaling in the backup database.
Example:
$ mupip backup -bytestream "*" tcp://philadelphia:7883,tcp://tokyo:8892
Assuming a Global Directory with two regions pointing to ACN.DAT and HIST.DAT, this example creates a backup of ACN.DAT to a possible MUPIP RESTORE process listening at port 7883 on server philadelphia and HIST.DAT to a possible MUPIP RESTORE process listening at port 8893 on server tokyo.
Always specify the <machine name> and <port> even if both backup and restore are on the same system, and ensure that the MUPIP RESTORE process is started before the MUPIP BACKUP process.
Example:
$ mupip backup -database -noonline "*" bkup DB file /home/gtmnode1/gtmuser1/mumps.dat backed up in file bkup/mumps.dat Transactions up to 0x00000000000F42C3 are backed up. BACKUP COMPLETED.
This command creates a disk-to-disk backup copy of all regions of the current database in directory bkup. GT.M freezes all the regions during the backup operation.
Example:
$ mupip backup -bytestream -nettimeout=420 DEFAULT tcp://${org_host}:6200
This command creates a backup copy of the DEFAULT region with timeout of 420 seconds.
Example:
$ mupip backup -bytestream DEFAULT '"| gzip -c > online5pipe.inc.gz"'
This command sends (via a pipe) the backup of the DEFAULT region to a gzip command.
Example:
$ mupip backup -online DEFAULT bkup DB file /gtmnode1/gtmuser1/mumps.dat backed up in file bkup/mumps.dat Transactions up to 0x00000000483F807C are backed up. BACKUP COMPLETED.
This command creates a backup copy of the DEFAULT region of the current database in directory bkup. During the backup operation, other processes can read and update the database.
Example:
$ mupip backup -record DEFAULT bkup
This command sets a reference point and creates a backup copy of the DEFAULT region of the current database in directory bkup.
Example:
$ mupip backup -online -record DEFAULT bkup1921 DB file /home/reptiles/mumps.dat backed up in file bkup1921/mumps.dat Transactions up to 0x00000000000F4351 are backed up.
Example:
$ mupip backup -bytestream -since=record DEFAULT bkup1921onwards MUPIP backup of database file /home/reptiles/mumps.dat to bkup1921onwards/mumps.dat DB file /home/reptiles/mumps.dat incrementally backed up in file bkup1921onwards/mumps.dat 6 blocks saved. Transactions from 0x00000000000F4351 to 0x00000000000F4352 are backed up. BACKUP COMPLETED.
The first command sets a reference point and creates a backup copy of the DEFAULT region of the current database in directory bkup1921. The second command completes a bytestream backup starting from the reference point set by the first command.
Example:
$ mupip backup -bytestream -transaction=1 DEFAULT bkup_dir MUPIP backup of database file /gtmnode1/gtmuser1/mumps.dat to bkup_dir/mumps.dat DB file /gtmnode1/gtmuser1/mumps.dat incrementally backed up in file bkup/mumps.dat 5 blocks saved. Transactions from 0x0000000000000001 to 0x0000000000000003 are backed up. BACKUP COMPLETED.
This command copies all in-use blocks of the DEFAULT region of the current database to directory bkup_dir.
Example:
$ mupip backup -newjnlfiles=noprevlink,sync_io "*" backupdir
This example creates new journal files for the current regions, cuts the previous journal file link for all regions in the global directory, enables the SYNC_IO option and takes a backup of all databases in the directory backupdir.