Enterprise Recon 2.11.1

Creating Backups

There are two ways to create backups of the Master Server:

Automated Backups

Automated backups of the Master Server can only be scheduled from the Server Information page in the Web Console.

To create an automated backup policy in the default location:

  1. Log in to the ER2 Web Console.
  2. Go to System > Server Information page.
  3. On the Server Information page, go to the Backup section and click the Edit icon.
  4. Select Enable auto-backup and click Confirm.
  5. In the Edit Backups dialog box, fill in the following fields:
    Edit Backups dialog box to configure the frequency, location and other settings for automated backups of the Master Server.

    Field Description
    Enable auto-backup Select to begin configuring the automatic backup policy.
    Notify me if the backup fails Sets up a new notification policy in Settings > Notifications > Notification Policy.
    Frequency Select frequency of automatic backup jobs.
    Date/ Time Select date and time of the next automatic backup job.
    Location Enter the destination folder to store the automatic backups. This location can be a local folder on the Master Server host or a remote network share directory.
    Backups to keep Enter the maximum number of backups the Master Server stores.
    If there are more backups stored than the maximum, the Master Server removes the oldest backups.
  6. Click Confirm to create the automatic backup policy. The "Backup" section now displays the details of your automatic backup policy.
    Details of automated backup including frequency, date/time, location and backups to keep in the Server Information page.

Backup Status

A list of backup jobs are displayed under the backup policy details. The jobs have the following statuses:

  • COMPLETED: Completed backup jobs are stored on the Master Server, in the path displayed under the "Location" column.
  • PENDING: Backup jobs that are waiting to start.
  • RUNNING: Backup jobs that are in progress.
  • INTERRUPTED: Backups are interrupted when the Master Server restarts mid-job. You cannot resume an interrupted backup.
  • ERROR: Backup jobs that have encountered an error and cannot continue.

List of backup jobs with their status in the Backup policy details section.

Delete Backups

To delete backups:

  1. Hover over the backup entry. Delete appears to the right of the backup entry.
    Delete a Master Server backup from the list of backup jobs in the Backup policy details section.
  2. Click Delete.
  3. Click Confirm to permanently delete the backup.

Manual Backups

To create a manual backup of the Master Server:

  1. Log in to the Master Server console.
  2. (Optional) Create a destination directory to store the backups and give ER2 ownership of this directory:

    # Where '<directory>' is the full path of the backup destination folder # Syntax: mkdir <directory> # Syntax: chown erecon:erecon <directory> mkdir /tmp/er2 chown erecon:erecon /tmp/er2

  3. Run the backup-start.rb script:

    # Where '<directory>' is the full path of the backup destination folder, # and '<backup file>' is the output backup file # Syntax: /var/lib/er2/scripts/backup-start.rb <directory>/'<backup file>' /var/lib/er2/scripts/backup-start.rb /tmp/er2/er-2.x.x-backup.bak

Manual Backup Commands

Use these commands to monitor the backup status in the Master Server Console:

Command Description
/var/lib/er2/scripts/backup-jobs.rb Display details of backup jobs including the job ID and status. See Backup Status for more information.
/var/lib/er2/scripts/backup-stop.rb <job ID> Stop a specific backup job by job ID.

Restoring Backups

For details on restoring backups from the Master Server console, see Restoring Backups.