Restoring Backups Manually

In some cases, it is necessary to restore backups manually, either to regain more control over what is restored or to handle issues that might prevent a restore through the Enhance User Interface. This method can be useful when the UI fails due to file ownership or other issues within the site's home directory.


Backup Storage Location

Backups are stored on the backup server in the following directory structure:

/{mount-point}/{website-uuid}/{snapshot}
  • Mount point: This is the directory where backups are stored (e.g., /backups).
  • Website UUID: A unique identifier for the website (you can find this in the address bar when selecting the website in the UI).
  • Snapshot: The backup snapshot, named by the Unix timestamp (e.g., snapshot-1678048114772).

Example Path

For a website with the UUID 4ce7fcd9-2b6c-4338-89f0-199d61899db8 and a backup mount point of /backups, the path to the backup would be:

/backups/4ce7fcd9-2b6c-4338-89f0-199d61899db8/snapshot-1678048114772

Inside this directory, you will find the following subdirectories:

  • email
  • home
  • mysql

Restoring Files

To restore files from a backup, follow these steps:

  1. Generate SSH Key
    Generate an SSH key on the backup server and add the public key to the website you wish to restore.

  2. Transfer Files
    Use rsync over SSH or SCP to transfer the necessary files from the backup directory to the website's home directory.

By manually browsing through the backup directories, you can restore specific files or directories as needed.

Was this answer helpful? 0 Users Found This Useful (0 Votes)