Enterprise Recon 2.0.31
Restoring Backups
To restore ER2 from a backup:
Stop ER2
In the Master Server console, run as root:
/etc/init.d/er2-master stop
Restore the Backup File
Restore to root.kct
-
Rename the existing root.kct file:
mv /var/lib/er2/db/root.kct /var/lib/er2/db/root.kct.orig
-
Run the er2-recovery command:
# Where '/tmp/er2-backup.bak' is the backup file to recover ER2 from er2-recovery -b /tmp/er2-backup.bak -w /var/lib/er2/db/root.kct
To recover or restore from a kct file:# Where '/tmp/er2-backup.kct' is the backup file to recover ER2 from er2-recovery -i /tmp/er2-backup.kct -w /var/lib/er2/db/root.kct
-
Give ER2 ownership of the root.kct file:
chown erecon:erecon /var/lib/er2/db/root.kct; chmod go-r /var/lib/er2/db/root.kct
-
(Optional) Once the restore operation has been verified to be successful, the original database file /var/lib/er2/db/root.kct.orig may be deleted.
Restore to root.rdb
-
Rename the existing root.rdb file:
mv /var/lib/er2/db/root.rdb /var/lib/er2/db/root.rdb.orig
-
Run the er2-recovery command:
To recover or restore from a bak file:# Where '/tmp/er2-backup.bak' is the backup file to recover ER2 from er2-recovery -b /tmp/er2-backup.bak -w /var/lib/er2/db/root.rdb
To recover or restore from a kct file:# Where '/tmp/er2-backup.kct' is the backup file to recover ER2 from er2-recovery -i /tmp/er2-backup.kct -w /var/lib/er2/db/root.rdb
To recover or restore from a rdb folder:# Where '/tmp/er2-backup.rdb' is the backup folder to recover ER2 from er2-recovery -i /tmp/er2-backup.rdb -w /var/lib/er2/db/root.rdb
-
Give ER2 ownership of the root.rdb database folder:
chown -R erecon:erecon /var/lib/er2/db/root.rdb; chmod -R go-r /var/lib/er2/db/root.rdb
-
(Optional) Once the restore operation has been verified to be successful, the original database folder /var/lib/er2/db/root.rdb.orig may be deleted.
Restart ER2
Start the er2-master process to restart ER2.
/etc/init.d/er2-master start
To restore a datastore on a clean installation of ER2, install the version of ER2 that the backup is made from and restore your data, then update ER2 to the latest version.