Backing up an environment

  Written by The Jahia Team
   Estimated reading time:

You can enable backups for your environment to protect against data loss. If necessary, you can restore your environment from a backup. There are two types of backups:

  • Scheduled
    By default, the environment is backed up twice a day, at noon and midnight, in the region where the environment is deployed. You can also specify the frequency and time of backups. For example, you can schedule several backups a day or schedule backups every other day.
  • On-demand
    You can trigger snapshots as needed.

All backups are stored in secure storage, protected by credentials that are only available to you through your Jahia Cloud account or to our support teams. The environment backups contain everything related to code (modules) and content and ensure that the restored environment will behave exactly as the original one. Backups are stored for an unlimited amount of time and are deleted when your backup quota is reached. The default quota is set to 30 environment snapshots and can be increased for a fee.

A scheduled or on-demand snapshot does not generate downtime for end visitors to your site. However, the platform will change to read-only mode while the snapshots occurs to ensure data consistency. The following image shows the Backups page.

backup_page.png

Enabling backups

When you enable backups, default schedules backup occur twice daily and manual backups become available. Scheduled backups are named using the following syntax: YYYY-MM-DD hh:mm:ss, for example, 2019-05-08T00:00:01. Manual backups are appended with -manual, for example, 2019-05-08T00:00:01-manual.

Note: Contact your support team if you want to define a custom backup schedule.

To enable backups of your environment:

In the Backups tab, click Activate the backup service on this environment.

backup_activate.png

A confirmation message indicates that backups are enabled and additional backup options display.

backups_enabled.png

Backups will now occur twice a day (at noon and midnight) and you can also trigger a backup at any time.

Triggering a backup

You can trigger a backup at any time.

To trigger a backup:

In the Backups>Backup policy, click Trigger a backup now.

trigger_backup.png

A message indicates that the backup service has started and a snapshot will be available in a few minutes. When the backup completes, the backup shows in the Available Backups list.

available_backups.png

Restoring an environment

The backup and restore service displays a list of all backups available for a specific environment. Restoring a backup installs a new platform following the same process as for creating an environment.

To restore a backup:

  1. In Backups>Available backups, click Restore beside the snapshot that you want to restore.
  2. In the Backup restore page, provide values for the enviroment.
    backup_restore_page.png