This topic describes how to perform a secondary backup to back up the tenant-level backup data.
Perform a secondary log backup
Note
When you back up log backups, you can enable log splitting to split the log backup into pieces.
To perform a secondary backup at the tenant level, you must specify the tenant to be backed up and the secondary backup destination. Syntax:
obclient> ALTER SYSTEM BACKUP BACKUPPIECE [= N] TENANT = tenant_name backup_backup_dest = [uri];
Nspecifies thebackup_piece_idof the piece of the log backup to be backed up.tenant_namespecifies the name of the tenant to be backed up.[uri]specifies the destination for the secondary backup task. Backups can be stored in Object Storage Service (OSS) or Network File System (NFS).
In most cases, only backup pieces in the FROZEN state are backed up during secondary backup. To back up backup pieces in the ACTIVE state, you can specify the WITH ACTIVE modifier, as shown in the following statement:
Notice
Backup pieces in the
ACTIVEstate can be backed up only in secondary backup tasks for tenants. This is not supported in secondary backup tasks for clusters.
obclient> ALTER SYSTEM BACKUP BACKUPPIECE ALL WITH ACTIVE TENANT = tenant_name backup_backup_dest = [uri];
Perform a secondary data backup
You can use the following syntax to back up data backups:
obclient> ALTER SYSTEM BACKUP BACKUPSET [= N] TENANT = tenant_name backup_backup_dest = [uri];
obclient> ALTER SYSTEM BACKUP BACKUPSET [= ALL] TENANT = tenant_name backup_backup_dest = [uri];
Nindicates thebackup_set_idof the backup set to be backed up.ALLspecifies the backup set of all data backups.tenant_namespecifies the name of the tenant to be backed up.[uri]specifies the destination for the secondary backup task. Backups can be stored in OSS or NFS.