Setting up a GFS strategy to automate data retention compliance
Using the Cloud Backup service, you can configure a GFS strategy (Grandfather-Father-Son) to automatically comply with backup retention periods. The strategy creates full and incremental backups on a schedule and automatically deletes outdated copies according to the specified retention periods, ensuring compliance with regulatory and audit requirements without manual intervention.
The following data is used as an example:
- Virtual machine name:
audit-vm. - Backup plan name:
gfs-compliance-plan. - Retain weekly full copies:
4weeks. - Retain monthly full copies:
12months. - Retain yearly full copies:
5years.
The retention settings specified in this example correspond to the best practices of VK Cloud.
- Go to the VK Cloud management console and make sure the Cloud Backup service is available in the project.
- Make sure the project contains a virtual machine for which you need to configure backups. The VM
audit-vmis used as an example.
-
Go to the Cloud Backup section.
-
Click Create schedule.
-
Enter the plan name:
gfs-compliance-plan. -
Select the resource type:
Virtual machine. -
Add the VM
audit-vmusing the Add button. -
Enable the Enable incremental backups option and configure the schedule:
- In the Days of full backup creation field, select a day of the week (for example, Sunday) and specify a time (for example,
02:00). - Incremental backups will be created on the other days of the week.
- In the Days of full backup creation field, select a day of the week (for example, Sunday) and specify a time (for example,
-
Enable the Enable full copy retention strategy (GFS) option and configure the retention periods for backups according to your compliance requirements, for example:
- In the Retain weekly full copies field, specify
4weeks. - Enable the Retain monthly full copies option and specify
12months. - Enable the Retain yearly full copies option and specify
5years.
- In the Retain weekly full copies field, specify
-
(Optional) Click the Configure disks for selected virtual machines button and specify which disks to include in the backup. By default, all disks are backed up.
-
Click Create plan. The created plan will appear in the list.
-
Wait for the first scheduled backup run.
-
Open the
gfs-compliance-planbackup plan for review. -
In the plan parameters, check:
- Plan status:
Enabled. - The number of successful, failed, and incomplete runs.
- The date and time of the last and next runs.
- Plan status:
-
Open the list of backups of the
audit-vmVM:- Click the plan name
gfs-compliance-planin the list. - Click the VM name
audit-vmor the right arrow icon.
- Click the plan name
-
Make sure the backups have been created:
- A full backup — on the day selected for full backups.
- Incremental backups — on the other days of the week.
For each copy in the list, the name, size, type (full or incremental), and start and end date and time are displayed.
-
Restore the
audit-vmVM from a backup:- In the Recovery type field, select
To a new instancefor a test recovery. - Wait for the recovery to complete.
- In the Recovery type field, select
-
Check the restored VM:
- Make sure the VM is created and running.
- Verify the integrity of the data on the restored VM.
The created resources are billed. If you no longer need them: