Configuring backup in ISPmanager is performed under the root user in the Tools section.
When you first enter the Tools - Backups section, you need to configure the basic parameters. In the future, you can change the parameters by selecting Settings.
Storage for Backups
The first step is to select the location of the backup storage.
Backups can be stored on the virtual server itself (Local directory item), in cloud storage - Dropbox, Google Drive, Amazon S3, or on remote FTP, SFTP servers.
Using a local directory is the easiest, but not very cost effective way to back up. First, virtual server space is wasted. Secondly, if the server fails, both data and their backups will be lost. Therefore, it is recommended to save backups to remote servers or cloud storage.
Use a passcode to save backups to cloud storage. Follow the link from the ISPmanager panel interface and confirm the action on the cloud service website. The passcode will be added automatically. Then specify the directory for saving the backups.
When choosing a cloud storage, you will need to get an access code by clicking on the link in the ISPmanager interface and specify the directory in which the backups should be saved.
When saving backups via FTP/SFTP, specify the address of the remote server, login and password for access, directory for storing copies.
Setting Additional Parameters
In the Limits section, you can configure exclusions and the maximum size of backups.
The oldest backups are deleted when the specified limit is reached. If the limit is not set, old copies are deleted when the storage runs out of free space.
To save storage space, you can exclude unnecessary files, directories and databases from backup.
The path to files and directories is specified inside the /var/www/user-name/ directory. For example, if you want to exclude the /var/www/user-name/data/www/domain-name/directory1 directory, enter:
It is recommended to exclude temporary files and folders, test and temporary databases from backup.
Click Ok to save your changes.
Checking Backup Work
A non-root user can view and create backups. The created backups are displayed in the Tools - Backups section. To check the backup operation, you can wait for the scheduled procedure or create a backup manually - click New.
Check the availability of a backup copy in the storage you selected. If configured correctly, all the backups displayed in the panel should be in the storage.
By default, ISPmanager backups are performed every day at 3.00 am. A full copy is made on Sunday. On other days - differential copies that contain only changes for the previous day.
To change the schedule for creating backups, go to Cron. Find ISPmanager backup task in the list.
Select the line with the required task and click the Change button. In the window that opens, make changes according to your requirements.
Backups can also be downloaded to the local computer from the panel interface: Tools - Backups - Download.
Restoring From a Backup
For a full restore from a backup, go to the panel as root. In the Tools - Backups section, select the last working copy (or the one you need) and click More. Select from the list the user whose data you want to recover and click Recover.
To recover any data (not complete recovery), log into ISPmanager as the user whose data has been lost or damaged. Under Tools - Backups, select the last working copy and double-click on it.
The list of saved data is sorted by type - files, databases. Select the type you want and double click on it. Next, a list of directories with files or a database will open. You can go to other levels in the file directories. Select the items you want and click Recover.
If you still have questions, please create a ticket to technical support.