This topic describes how to migrate backup data from the source to the destination. Object Storage Service (OSS) and Network File System (NFS) can be used as the backup media.
Prerequisites
The destination device for the secondary backup is configured. For more information about the operation, see Preparations for secondary backup.
Perform a secondary data backup
Log on to the
systenant as therootuser.Execute the following statements to perform a secondary data backup:
obclient> ALTER SYSTEM BACKUP BACKUPSET ALL; obclient> ALTER SYSTEM BACKUP BACKUPSET N;ALLspecifies the backup set of all data backups.Nindicates thebackup_set_idof backups to be included in the secondary backup.Assume that five backup sets exist with
backup_set_idof1,2,3,4, and5, and that1,2, and4are full backups whereas3and5are incremental backups. The following examples perform a secondary backup on them.Perform a secondary backup on all current backup sets.
obclient> ALTER SYSTEM BACKUP BACKUPSET ALL;Perform a secondary backup on the backup set whose
backup_set_idis3.obclient> ALTER SYSTEM BACKUP BACKUPSET 3;If one backup set is dependent on another, and you have performed secondary backup by specifying the
backup_set_idof the referenced backup set first, the system returns an execution error when you try to perform a secondary backup by specifying thebackup_set_idof the dependent backup set.For the backup sets in this example, the execution fails if you execute
ALTER SYSTEM BACKUP BACKUPSET 3;beforeALTER SYSTEM BACKUP BACKUPSET 1;.