Auto-backup service: backup restore
Auto-backup service allows to backup both virtual servers with ISPmanager control panel and without it — VPS with Ubuntu, CentOS and Debian operating systems.
Restoration guide requires some experience with server console (command line). If you need help to restore a backup, feel free to contact us in your Client Area —
Support tickets section. We will restore the necessary backup copy.
If you use the ISPmanager control panel, the restoration process is simple and automatic. To restore backup manually, connect to your server by SSH or VNC.
Auto-backup service system creates full (weekly) and differential (daily) backups. Its differ by meaning and content.
The full backup archive contains all files in the saving directories at the backup creation moment. The system creates full backup after the auto-backup option was enabled by schedule and after that — weekly on Sundays. You can recognize it by «F» symbol in the archive name first letter.
The differential backup archive contains the copies of files, that were changed since the last full copy creation. The system creates differential backups daily from Monday till Saturday. You can recognize it by «I» symbol in the archive name first letter.
Differential copies depend on full ones. To restore the data for required date, you need to restore first the last full backup (for the last Sunday before the required date), and then — differential archive for the required date with data replacement.
To save your server disk space each backup copy creates by 100 Mb fragments, «slices». After slice creation, it is uploading to external storage and is removing from your server. Then new slice creation starts — and so on until the full backup won’t be uploaded to storage. It helps to save server resources — disk space and network traffic.
To start the restoration you need to build and unpack the backup archive because it is still split up for «slices». The best tool for it is
isptar utility from ISPmanager control panel developers — ISPsystem company. It will help build and restore the backup automatically, but you need to download the copy to your server first.
To download the copy the FTP-storage login details are required. You can find it in your Client Area: navigate to
Virtual private servers section, choose your server from the list by a single click and press
«Instructions» button above. In
«Automatic backup» section there are necessary logins.
Let's imagine that we discovered the required data:
For example, we will restore the backup for
First, connect to server by SSH and run some commands in the console:
- to download the last full backup (for the last Sunday — it is
2020-04-19for this example):
wget -r ‘ftp://ftp-user:email@example.com/2020-04-19’
- to download the necessary differential backup (for the required date — it is
2020-04-22for this example):
wget -r ‘ftp://ftp-user:firstname.lastname@example.org/2020-04-22’
Second, create the directory for restored data:
Third, navigate to the directory with downloaded differential archive for required date:
Forth, run the restore process:
- to restore all backup data enter by the single line:
/opt/autobackup/isptar --extract I2020-04-22.user.tgz --base ../2020-04-19/F2020-04-19.user.tgz --root /root/restore
- to restore partial data, for example, /data/example directory enter the next command:
/opt/autobackup/isptar --extract I2020-04-22.user.tgz --base ../2020-04-19/F2020-04-19.user.tgz --root /root/restore data/example
After process completion, the /root/restore folder will contain the required data, which is actual for