<
HomeKnowledge BaseOnline BackupHow to restore via Linux command-line
Information
Article ID40
Created On8/26/2009
Modified8/26/2009
Share With Others
How to restore via Linux command-line
To restore files from the Linux command line, use the "Restore.sh" script located in the "bin" directory of the OBM installation home (e.g. /usr/local/obm/bin/Restore.sh).

To run the script, if the OBM_HOME variable is not set you must set the OBM_HOME environment variable to the installation home (e.g. /usr/local/obm) and then export the variable. For example:

root> OBM_HOME=/usr/local/obm
root> export OBM_HOME

Simply edit the "Restore.sh" file to specify what it is you want to restore, and then run the script. For example, changing the following variables within the script will restore the directory "/etc" to the directory "/tmp" using the backup set named "BackupSet1" using the latest point-in-time backup:

BACKUP_SET=BackupSet1
RESTORE_TO=/tmp
RESTORE_FROM=/etc
POINT_IN_TIME=Current

Once the files have been restored you can move them back into revelant directory or database.
Call us now on » 08708637200