1. Home
  2. Cloud and Servers
  3. Virtual Servers (VPS)
  4. Access to the backups on the virtual server

Access to the backups on the virtual server

If you have the service Backups on your virtual server, every day in the night hour a backup of your file system and databases is created. These files are available on your VPS via network sharing, so you can restore your data via command line or SFTP connection anytime – even if the helpdesk is not avaiable.

Last instance is located in the directory /backups, while in /backups/mysql there are exports (dumps) of the MySQL database and in /backups/root there are all files of the virtual server from the root directory:

root@vps:~# cd /backups

root@vps:/backups# ls -l

drwxr-xr-x+ 4 root root 4 Jan 18 02:30 mysql

drwxr-xr-x+ 20 root root 27 Jan 18 00:54 root

Older backups are stored in so-called “snapshots”, that are available in the hidden file /backups/.zfs/snapshots (directory .zfs is not visible if we enter”ls -la /backups”, but it is present and we can go inside via “cd .zfs”). They are sorted by date, which will help you find the one you need:

root@vps:/backups# ls -l .zfs/snapshot/

drwxr-xr-x 4 root root 4 Jan 15 05:15 2015-01-16-01-58

drwxr-xr-x 4 root root 4 Jan 15 05:15 2015-01-17-01-44

drwxr-xr-x 4 root root 4 Jan 15 05:15 2015-01-18-01-18

In each snapshot there are also directories mysql and root that containt the content of data and database from the specific date (as you can see, last change was at 16.1. in the night):

root@vps:/backups# ls -l .zfs/snapshot/2015-01-16-01-58/

drwxr-xr-x+ 4 root root 4 Jan 16 01:30 mysql

drwxr-xr-x+ 20 root root 27 Jan 16 01:50 root

Backup service can be ordered to each virtual server.

Updated on August 10, 2021

Was this article helpful?

Related Articles