Enterprise Recon 2.0.27

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

This command stops ER2 from running and releases the lock from the root.kct file.

Restore the Backup File

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

    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

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

Restart ER2

Start the er2-master process to restart ER2.

/etc/init.d/er2-master start