A backup copy is a copy of all websites, databases and user mailboxes. Backups allow the following:
- restoring information in case of problems in the operation of the website;
- restoring the website when moving from server to server;
- saving data in case of possible server failures, software failures, hardware problems, etc.
Backups can be stored on the server with ispmanager or in an external storage. The following can be used as the external storage:
- Google Drive;
- Amazon S3;
- S3-compatible storage;
- FTP server;
- SFTP server (with connection via SSH).
By default, backups for all users are created automatically once a day. You can customize the backup schedule. Read more about the operating principle of backups in The ISPtar backup module.
To manage backups, enter Tools → Backup copies.
Configuring backup schedule
When you open the Backup copies section for the first time, ispmanager offers to configure backup settings. Press OK to enter the settings.
- Specify the Basic settings:
- Activate the Enable backups option to run the backup process with the specified settings. NoteIn order to enable/disable backups for a specific user, you need to enable/disable this option in the user settings.
- Select the place to store backups in the Storage type field.
- Specify the Backup copy password.
- Specify the settings for the selected storage type: Local directoryDropboxGoogle DriveAmazon S3S3-compatible storageFTP serverSFTP server (over SSH)
- Activate the Enable backups option to run the backup process with the specified settings.
- Specify Restrictions on the creation of copies:
- Total size in bytes. You can specify a unit of measurement in this field. E.g., 100Mib. Note
- For local storage, the limit applies to each node of the cluster separately. If this value is exceeded, the oldest backups will be deleted;
- You can leave this field blank; in that case the backups will be stored until the storage runs out of space;
- You can limit the total number of backups using the BackupCountLimit configuration file parameter. The default value of the parameter is 14 (7 daily and 7 weekly backups).
- Maximum number of Full backup copies. A full backup contains all user data. It is created the first time you run a backup and on Sundays.
- Maximum number of Daily backup copies. The daily backup contains changes in user data from the last day. It is created daily, except on Sundays. Read more in Backup system: general information.
- In the Exclude files field, specify which files should not be included in the backup. Each exception has to be specified in a new line. Note
- File paths are set relative to the user's home directory (default is /var/www/username/). E.g., data/.filemgr-tmp;
- You can use the * symbol to replace any characters in the file name.
- In the Exclude databases field, specify which databases should not be included in the backup. Each database has to be specified in a new line.
- Total size in bytes. You can specify a unit of measurement in this field. E.g., 100Mib.
- Specify Advanced settings:
- Set the backup Start time by Server time.
- To encrypt the archive, set the Backup password.
- Press OK.
To change the settings, enter Tools → Backup copies → Settings button.
Restoring data from a backup
Recovery of a user and all user's data
To restore user data from a backup, enter Tools → Backup copies → select the backup→ Details button → select the user → Restore button → OK. When the data are restored, the message "Backup restore has been completed successfully" will appear in the ispmanager interface.
Recovery of a deleted user
You can recover a deleted user from a backup under a different name. Enter Tools → Backup copies → select the backup → Details button → select the user → Restore as button → specify the User name to which the data will be restored from the backup or Create user with a new name → Ok. In this case, ispmanager will not restore matching entities. In addition, the backups created under the old name will not be available to the user.
Restoring individual files
To restore individual files from a user backup:
- Log in with a user account: Accounts → Users → select the user → Log in button.
- Open the user's backup: Tools → Backup copies → select the copy → Details button.
- Select the data type.
- Select the required files.
- Click the Restore button to restore files from the backup.
When the data are restored, the message "Backup restore has been completed successfully" will appear in the ispmanager interface.
Downloading the backup
To download one of the backups to the local computer, enter Tools → Backup copies → select the backup → Details button → select the user → Download button. The backup will be downloaded as a tar archive with the file name of YYYY-MM-DD-user.tar.gz.