Storing backups of deleted users
In ispmanager, you can configure how many days a user's last backup will be stored after the user deletion.
Configuration
- Log in to the panel with an administrator level account or above.
- Go to Backup copies and click the
Backup settings button on the toolbar.
- In the form that opens on the right, switch to the Extended settings tab.
- In the Store deleted user data for (days) field, specify the storage period for the deleted user copy and click Save. If no storage period is specified, the copy is stored until the limit on the number of full copies is reached. For more information, see Deleting backup copies without storage period.
If backups of deleted users exist, the Deleted users row will appear in the Backup copies section.
Deleting backup copies
With storage period
After configuring the storage period for deleted user backups, the following backups remain in storage:
- the last full backup or
- the last differential backup and the full backup before it.
All the other backups are deleted. The last remaining copy is deleted when the storage period (counted from the user's deletion) expires.
Whether the last backup copy needs to be deleted is checked when a new copy is created. If the storage period has expired, but the next backup is scheduled in X days, the copy will be deleted after X days.
If the storage period is changed, the deleted user's backup is deleted according to the new value.
Without storage period
If the storage period for deleted users is not specified, the backups are deleted when the limit on the number of full copies is reached:
- When you create a backup, the panel checks how many full copies could have been created from the last backup to the current date.
- If the number exceeds the limit, the oldest copy is deleted.
- If there are multiple copies, the process repeats until the last existing copy is deleted.
Technical details
The storage period of a deleted user backup is saved to the keep_deleted_user_day
parameter in the /usr/local/mgr5/etc/backup.conf
configuration file.