Automatic Creation of Backups by the Hosting Company
Our company makes copies of VPS servers free of charge once a week. You can also order a service for daily copying (paid).
All backups are created automatically and stored on the company's servers. Users do not need to create repositories or copy.
Free backups keep 4-5 weekly backups. A daily copy retains copies of the last 30 days.
2. Using the server control panel
You can make backups in the control panel installed on your server. We recommend ISP Manager Lite, VestaCP, DirectAdmin, CentOS Web Panel.
Here you can set up a scheduled backup, or create a copy manually at any convenient time. The backup copy can be stored on the server itself, on a remote server, on a local computer or in cloud storage (Google Disc, Yandex Disk, Dropbox, etc.)
3. FTP Clients
You can also use dedicated software such as the FileZilla FTP client to create backups.
To connect via FTP or SFTP, you must use your credentials. After connecting, you can perform any operations with files - copy to the local computer from the server or from the local computer to the server.
4. tar and dd applications (Linux)
On Linux, backups can be performed using the built-in dd and tar utilities.
Backing up with dd
Before creating a copy, make sure that there is enough space in the target directory to place the backup. To create a copy of your hard drive, run:
dd if=<source_disk> of=<full_copy_name> bs=8M conv=sync,noerror
dd if=/dev/sda of=/mnt/backup1/sda.img bs=8M conv=sync,noerror
- /dev/sda – the entire sda hard drive will be copied;
- of=/mnt/backup1/sda.img – the copy will be saved to /mnt/backup/sda.img,
- bs=8M – sets the hard disk cache size to speed up copying (512 bytes by default);
- conv=sync,noerror – bit-to-bit copying is set, read errors are ignored.
Backing up with tar
Tar has more options than dd and also allows you to create a system backup.
To create a system backup, enter:
tar -cvpzf <file_name>.tar.gz --exclude=<file_name> --one-file-system <target_directory>
tar -cvpzf backup1.tar.gz --exclude=/backup1.tar.gz --one-file-system /
- c - create a new backup archive;
- v - verbose mode (displaying information about current operations);
- p - saving file access rights;
- z - compression with the gzip utility;
- f <backup1> - full name of the backup file;
- --exclude = <backup1> - files / directories to be excluded from the backup. Be sure to exclude the backup file;
- --one-file-system - creating a copy of one file system. Media with other file systems will not be included into the copy;
- / - the directory to be copied.
To perform scheduled backups it is recommended to use the Cron task scheduler. In this case, backups will be created automatically. Also in the scheduler, you can configure the automatic copying of the created backups to a remote server.
5. Backup plugins for CMS (for site recovery)
Most modern CMSs have built-in tools to create site or site database backups. It is advisable to use CMS backup before making changes to the site or updating themes/plugins.
Where to Store Backups?
1. On the same server
You can place backups on the same server as the original files. It is more convenient and simpler, but requires disk space and is not always secure. It is recommended to place backups on the same server before transferring to other servers or before updating software.
2. On a remote server
You can place your backups on any remote server. If you have 2 servers, you can cross-back up. That is, on server 1, back up files from server 2. And on server 2, back up files from server 1.
3. On a dedicated server for backups
Our company provides the "Backup storage service" service. You get a remote storage for backups (the price is only $ 1 per month for the BACKUP-25 package).
4. On the local computer
You can save backups on your local computer.
5. In the cloud storage
You can also save backups to cloud storage - Google Disc, Yandex Disk, Dropbox, etc.
If you have any questions, please create a ticket to technical support.