Enterprise Recon 2.0.31

Restoring Backups

To restore ER2 from a backup:

  1. Stop ER2
  2. Restore the Backup File
  3. Restart ER2

Stop ER2

In the Master Server console, run as root:

/etc/init.d/er2-master stop

Restore the Backup File

Restore to root.kct

  1. Rename the existing root.kct file:

    mv /var/lib/er2/db/root.kct /var/lib/er2/db/root.kct.orig

  2. 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

  3. 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

  4. (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

  1. Rename the existing root.rdb file:

    mv /var/lib/er2/db/root.rdb /var/lib/er2/db/root.rdb.orig

  2. 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

  3. 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

  4. (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