To produce a full online backup of the Platform databases when running Derby, use the following mzsh
command:
Code Block | ||||
---|---|---|---|---|
| ||||
$ mzsh mzadmin/<password> derbybackup <backup directory> |
To restore the database:
Shut down .
Move all directories and files from the backup directory to the Derby restore directory. Use the following command to retrieve the restore directory:
Code Block language text theme Eclipse mzsh topo get --format data-only topo://services:standard/val:storage-dispatcher.storage-dispatcher1.config.db-properties.derby.restore.path
Startup .
After a restore has been performed, the directory defined in derby.restore.path
will be renamed upon the next startup, in order to prevent another restore from being made. The new name consists of the old name with the _USED
suffix attached. The startup procedure also creates an entry in the System Log, showing the outcome of the restore.
Tip | ||
---|---|---|
| ||
One way of performing regular backups is to create a script that runs the |