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.
In the following examples, username would be your Shell user and example.com your website.
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-2016-03-11-16h18 zfs-auto-snap_daily-2016-03-15-16h18 zfs-auto-snap_daily-2016-03-18-16h18 zfs-auto-snap_daily-2016-03-12-16h19 zfs-auto-snap_daily-2016-03-16-16h18 zfs-auto-snap_weekly-2016-03-06-16h18 zfs-auto-snap_daily-2016-03-14-16h18 zfs-auto-snap_daily-2016-03-17-16h18 zfs-auto-snap_weekly-2016-03-13-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/