Performing a snapshot backup of Db2 with the cpd-cli backup-restore
You can use the cpd-cli backup-restore command-line interface to perform a snapshot backup of your Db2 persistent volumes.
For full details on using the cpd-cli backup-restore for snapshot backups, see Backing up voumes.
Table 1 shows the cpd-cli backup-restore actions that Db2 supports.
Action | Example command | Result |
---|---|---|
Quiesce | cpd-cli backup-restore quiesce -n project |
Scales Db2 down to 0 |
Unquiesce | cpd-cli backup-restore unquiesce -n project |
Scales Db2 up to the original replica count |
Volume backup/snapshot | Both commands have a dependency on the quiesce/unquiesce flow above. |
Note: Deployments that use the
zen-databases
and
zen-databases-core
pods might return an error during quiesce, but you can ignore
the error. The pods might continue to run and be in a Not Ready state after a quiesce, but this
state does not affect volume backup or restore because the pods do not use any volumes.