Restoring Backups Manually
Sometimes it is necessary to restore backups manually outside of the LxRoot User Interface. This approach provides granular control and can bypass issues where UI restores fail due to file ownership conflicts (e.g., files owned by root) within a site's home directory.
Backups are stored on the backup server at the following location:
/{mount-point}/{website-uuid}/{snapshot}
You can find a website's UUID in your browser's address bar after selecting the website in the LxRoot UI.
Example Path
If a website has the UUID 4ce7fcd9-2b6c-4338-89f0-199d61899db8 and your backup mount point is /backups, the path to specific snapshots would be:
/backups/4ce7fcd9-2b6c-4338-89f0-199d61899db8/snapshot-1678048114772
Note: The number following "snapshot-" is the precise Unix timestamp of the backup.
Directory Structure & Restoration
Inside each snapshot directory, you will find three primary categories:
- email: Contains all backed-up mail accounts and data.
- home: Contains the website's files and directories.
- mysql: Contains database dumps and snapshots.
To restore files, we recommend generating an SSH key on the backup server and adding the public key to the destination website. You can then utilize rsync over SSH or scp to transfer the required data back to the site's home directory.