Enterprise Recon 2.6.1

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 '<directory>/<backup file>' is the full path of the .bak or .ebk 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.kct


    To recover or restore from a kct file:

    # 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.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 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 kct file:

    # 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.kct -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

  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