Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To produce a full online backup of the Platform the Platform databases when running Derby, use the the following  mzsh  command:

Code Block
languagetext
themeEclipse
$ mzsh mzadmin/<password> derbybackup <backup directory>


Note
titleNote!

The backup directory needs to be stated with the full path, e g /Users/myusername/backupdirectory, so it is not relative to the directory you are currently in.


To restore the database:

  1. Shut down Image Added.

      

  2. Move

  3. the directory in the
  4. all directories and files from the backup directory to the Derby restore directory. Use the following command to retrieve the restore directory:

    Code Block
    languagetext
    themeEclipse
    mzsh topo get --format data-only topo://
  5. container
  6. services:
  7. <container>
  8. standard/
  9. pico:platform
  10. val:storage-dispatcher.storage-dispatcher1.config.
  11. \
  12. db-properties.derby.restore.path 
    

     

  13. Startup Image Added.

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
titleHint!

One way of performing regular backups is to create a script that runs the  derbybackup  command and includes a date as part of the directory name. The script may be called at a regular interval, for instance, once a day, by adding and scheduling a script executor in a  Task Workflow  in the  Workflow Editor .

...