Enterprise Recon 2.12.0
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
-
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 or ebk file:
# Where '<directory>/<backup file>' is the full path of the backup # file to recover ER2 from # Syntax: er2-recovery -b <directory>/<backup file> -w /var/lib/er2/db/root.kct er2-recovery -b /tmp/er2/er-2.x.x-backup.bak -w /var/lib/er2/db/root.rdb
To recover or restore from a rdb folder:
# Where '<directory>/<backup file>' is the full path of the backup # database to recover ER2 from # Syntax: er2-recovery -i <directory>/<backup file> -w /var/lib/er2/db/root.kct er2-recovery -i /tmp/er2/er-2.x.x-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.