How to manually backup your Dedicated site files

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 below techniques.

The following commands require SSH access.

The backups for Dedicated servers are accessible from the /mnt/backup directory of the server.

[server]$ cd /mnt/backup/home/USERNAME
  1. To restore something from the most recent backup, rename the directory of the website you wish to restore. For example, if your site is example.com, rename it to example.com.old.
  2. Create a new empty website folder. In this example, a blank folder named example.com is used.
  3. Run an 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/

See also

Did this article answer your questions?

Article last updated .