If you Enable Automated Backups for a database, Data Management for VMware Tanzu initiates backup of the database automatically and saves it to the local and cloud storage.
In addition to the automated backups, Data Management for VMware Tanzu also allows you to back up a data-protected database manually, on-demand.
The backup window that you configure for a database determines at what time Data Management for VMware Tanzu initiates the daily backup, and how long backups are retained on local and cloud storage.
When a database is created with automated backups enabled, the first full backup of the database takes place immediately after it is provisioned.
The first backup is a full backup - it contains all service data in the database. For a database that has automated backups enabled, subsequent backups of the same database are incremental or full depending on the local retention period configured for the database.
The amount of time that it will take Data Management for VMware Tanzu to back up a database depends on its size and whether the backup is full or incremental.
Based on user role, the privileges to view the backup VMs differ as follows:
When you configure Backup Configuration, the number of days that you enter for Local Backup Retention, specifies the length of the backup cycle. If you choose 7 days (the minimum value), the first backup is a full backup followed by 6 days of incremental backups. On the 8th day, the cycle resets; Data Management for VMware Tanzu takes a second full backup which is followed by 6 days of incremental backups.
Each full backup followed by N
days of incremental backups until the next full backup forms a backup chain. Each incremental backup in a chain is dependent on the previous incremental backup, and ultimately dependent on the most recent full backup.
All backups in the current backup chain represent the most current state of the service data. Data Management for VMware Tanzu considers these backups to be ACTIVE. Older, completed backup chains have an AVAILABLE status. While you are permitted to delete backups with AVAILABLE and ACTIVE status, it is not recommended.
If you configure Enable Automated Backups for a database when you create the database, you can specify the backup window and retention policies for the database.
Backup window and retention properties include:
Property Name | Description |
---|---|
Daily Backup Time | The time of day to back up the database. This is in the local time zone of the database server. |
Local Backup Retention | The number of days to retain a backup on local storage. |
Cloud Backup Retention | The number of days to retain a backup on cloud storage. |
Cloud Backup of a database can fail due to server failure, connection issues, and so on. In such cases the cloud backup of the database is behind the local backup and is not synched with the local backup.
Perform the following steps, to synch the cloud backup of the database with its local backup:
Select Database Backups from the left navigation pane.
This action displays the Database Backups view, a table that lists the provisioned Database Backups.
Examine the Database backups listed in the table, identify the Database Backup whose cloud backup you wish to synch with the local backup, and click the three dots in the Actions column of the Database Backup, and select Resync Cloud Backup from the pop-up menu.
Monitor the progress of the task in the Operations tab or in the Recent Operations pane at the bottom of the UI to follow the progress of the operation, RESYNC CLOUD BACKUP.
If the task fails, click the operation, RESYNC CLOUD BACKUP, and then click the Error Info tab to examine the error information.
If Enable Automated Backups was deactivated when you created a database, you can choose to enable it at any time after provisioning.
Perform the following procedure to enable automated daily backups for a database:
Select Databases from the left navigation pane.
This action displays the Databases view, a table that lists the provisioned databases.
Examine the databases listed in the table, identify the database whose backup policies you wish to update, and navigate to that table row.
Click the database VM Name.
The database information Details tab displays.
Select the Backup tab.
This action displays backup information for the database, including the backup policy, and the daily backup time, backup retention periods, and backup files when data protection is enabled.
Locate the Backup Policy, and click EDIT.
The Backup Policy dialog displays.
If Enable Automated Backups is OFF, toggle the value to ON and then enter the daily backup time and the number of days to retain local and cloud backups.
Click SAVE.
Data Management for VMware Tanzu generates a management operation of type MODIFY BACKUP CONFIG, and automatically takes a full local and cloud backup of the database.
Monitor the progress of the task in the Operations tab or in the Operations view:
You can similarly monitor and examine the BACKUP DB operation details.
You can manually initiate a backup of a database at any time after you provision it. An on-demand backup may either be a full backup or an incremental backup, depending on:
When you manually initiate a backup, a backup file of a database for which you have enabled automated backups is bound to the same retention policies as a backup file generated from an automated backup.
If you choose to deactivate Enable Automated Backups while creating a database, you can only create on-demand backups of the database. Such backups are always full backups that can be deleted immediately if required, without any dependencies. You can also perform restore operation on such manual backups. However, such manual backups cannot be used for PITR functionality, are not purged automatically, and need to be deleted manually.
On-demand backup is available only for a database that has its status as ONLINE. You cannot initiate an on-demand backup of a database that has its status as INIT. To initiate an on-demand backup, after provisioning a database, wait until the status of the database turns to ONLINE from INIT.
Perform the following procedure to initiate an on-demand backup of a database:
Select Databases from the left navigation pane.
This action displays the Databases view, a table that lists the provisioned databases.
Examine the databases listed in the table, identify the database that you want to back up now, and navigate to that table row.
Click the database VM Name.
The database information Details tab displays.
Select the Backup tab.
This action displays backup information for the database, including the backup policy, and the daily backup time, backup retention periods, and backup files when data protection is enabled.
Locate the Backup Files section of the pane, and click BACKUP NOW in the upper right corner.
The Backup Database form displays.
Enter the file name of the backup in the field Backup Name, and then click BACKUP.
Data Management for VMware Tanzu generates a management operation of type BACKUP DB, and takes an incremental local and cloud backup of the database.
Monitor the progress of the task in the Operations tab or in the Operations view:
If the backup operation completes successfully, there is an entry in the Backup Files table of the database information Backup tab for the database. This backup has an Active Status.
You can manually delete any backup at any time. When you delete a backup file, Data Management for VMware Tanzu deletes the file from both local and cloud storage.
Perform the following procedure to delete a backup file for a database:
Select Databases from the left navigation pane.
This action displays the Databases view, a table that lists the provisioned databases.
Examine the databases listed in the table, identify the database for which you want to manage the backup files, and navigate to that table row.
Click the database VM Name.
The database information Details tab displays.
Select the Backup tab.
This action displays backup information for the database, including the backup policy, and the daily backup time, backup retention periods, and backup files when data protection is enabled.
Locate the Backup Files section of the pane.
Examine the backups listed in the table, identify the backup file that you want to delete, and navigate to that table row.
Click the three dots in the Actions colum, and select Delete from the pop-up menu.
The Delete Backup dialog displays.
If you are certain that you want to delete the backup file, click CONFIRM and ignore the warning message that is displayed.
The Delete Backup dialog displays the list of backup files that will be deleted.
If you are certain that you want to delete the backup file(s) listed in the Delete Backup dialog box and ignore the warning message, click CONFIRM again.
Data Management for VMware Tanzu generates a management operation of type DELETE BACKUP.
Monitor the progress of the task in the Operations tab (available when you click a database row from the Databases view) or in the Operations (available when you click Operations from the left navigation pane) view:
If the operation completes successfully, the row in the Backup Files table is removed.
Data Management for VMware Tanzu enables you to change the default resources of Local Storage, Cloud Storage, VM Datastore, or Application Network for a Namespace. After these changes are applied, the new databases are created using the new default resources of the Namespace. However, the old backups, restores, and clones of databases continue to use the old default resources of the Namespace.
After changing the default resources of a Namespace, you must update the database that uses the Namespace. Also, you should migrate the existing backups, clones, and restores of the database to the new default resources of the Namespace, for example, a new storage or network.
After changing the default resources of a Namespace with which a database is provisioned, perform the following steps to migrate databases to the new default storages and networks of the Namespace:
Click the database in the Databases view of the Databases pane.
The Details tab of the database appears.
Click the Backup tab, and then click the UPDATE button in the Active Database Backup Storage section.
Migrate the existing backups, clones, and restores of the database manually to the new default resources of the Namespace.