VK Cloud logo

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: 4 weeks.
  • Retain monthly full copies: 12 months.
  • Retain yearly full copies: 5 years.

The retention settings specified in this example correspond to the best practices of VK Cloud.

Preparation steps

  1. Go to the VK Cloud management console and make sure the Cloud Backup service is available in the project.
  2. Make sure the project contains a virtual machine for which you need to configure backups. The VM audit-vm is used as an example.

1. Create a backup plan with a GFS strategy

  1. Go to the Cloud Backup section.

  2. Click Create schedule.

  3. Enter the plan name: gfs-compliance-plan.

  4. Select the resource type: Virtual machine.

  5. Add the VM audit-vm using the Add button.

  6. 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.
  7. Enable the Enable full copy retention strategy (GFS) option and configure the retention periods for backups according to your compliance requirements, for example:

    1. In the Retain weekly full copies field, specify 4 weeks.
    2. Enable the Retain monthly full copies option and specify 12 months.
    3. Enable the Retain yearly full copies option and specify 5 years.
  8. (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.

  9. Click Create plan. The created plan will appear in the list.

2. Verify backup creation

  1. Wait for the first scheduled backup run.

  2. Open the gfs-compliance-plan backup plan for review.

  3. 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.
  4. Open the list of backups of the audit-vm VM:

    • Click the plan name gfs-compliance-plan in the list.
    • Click the VM name audit-vm or the right arrow icon.
  5. 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.

3. Verify operability

  1. Restore the audit-vm VM from a backup:

    • In the Recovery type field, select To a new instance for a test recovery.
    • Wait for the recovery to complete.
  2. Check the restored VM:

    • Make sure the VM is created and running.
    • Verify the integrity of the data on the restored VM.

Delete unused resources

The created resources are billed. If you no longer need them:

  1. Delete the backup plan.

  2. Delete the VM restored from the backup if it is no longer needed.

  3. Delete the audit-vm virtual machine if it is no longer needed.

Was this article helpful?