Enterprise Recon 2.0.27
To restore ER2 from a backup:
In the Master Server console, run as root:
This command stops ER2 from running and releases the lock from the root.kct file.
Restore the Backup File
Run the er2-recovery command:Running this command overwrites the existing root.kct 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.kct
The command runs a recovery script that checks the integrity of the backup file, converts the selected backup file, /tmp/er2-backup.bak to a kct file and copies it to the /var/lib/er2/db/ folder as a new root.kct file.
To recover or restore from a kct file instead of 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
Start the er2-master process to restart ER2.
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.