Overview
Dedicated Servers do not have the option for customers to restore a website backup from the control panel. All restores need to be done using an admin user, using the following techniques.
The following commands require SSH access using an admin user. You must switch to the root user using sudo -s or sudo -i before you can run the commands below.
In the following examples, username would be your Shell user and example.com your website.
Restoring backups
The backups for Dedicated Servers are accessible from the /mnt/backup directory of the server.
[server]$ cd /mnt/backup/home/username
- To restore something from the most recent backup, rename the active directory of the website you wish to restore. For example, if your site is example.com, rename it to example.com.old. This directory is under /home/username/.
- Create a new empty website folder. In this example, a blank folder named example.com is used.
- Run rsync to copy the files to this new blank folder:
[server]$ rsync -av /mnt/backup/home/username/example.com/ /home/username/example.com/
Restoring older backups
If you need older backups, the snapshots can be found in the .zfs and snapshot directory:
[server]$ /mnt/backup/.zfs/snapshot# ls zfs-auto-snap_daily-2024-03-27-16h18 zfs-auto-snap_daily-2024-03-30-16h18 zfs-auto-snap_daily-2024-04-02-16h18 zfs-auto-snap_daily-2024-03-28-16h19 zfs-auto-snap_daily-2024-03-31-16h18 zfs-auto-snap_weekly-2024-03-26-16h18 zfs-auto-snap_daily-2024-03-29-16h18 zfs-auto-snap_daily-2024-04-01-16h18 zfs-auto-snap_weekly-2024-04-02-16h18
To restore something from a snapshot, rename the directory of the website you wish to restore as mentioned above, create a new blank directory, then run rsync:
[server]$ rsync -av /mnt/backup/.zfs/snapshot/SNAPSHOTDIR/home/username/example.com/ /home/username/example.com/