BACKDSN and DELBACK Examples
The BACKDSN command can be used to manually backup with a specified retention period regardless of its SMS or backup policy definitions, or for data sets that are not eligible for automatic backup in DFSMS. It also allows creating a backup of a data set with a new name, backup date and backup time.
The DELBACK command can be used to manually delete a backup created by the BACKDSN command that is no longer needed.
SCENARIO A: BACKUP AND RENAME A DATA SET THAT WAS BACKED UP IN THE PAST
Moving backups from tape to cloud can be done by restoring the tape backup to DASD with a temporary name and backing them up again with Model9 with the original name and date.
TSO M9CLI BACKDSN M9.APPL.SOURCE.TEMP NEWNAME(M9.APPL.SOURCE)
NEWDATE(2001/03/30)
SCENARIO B: BACKUP A DATA SET FOR A SHORT PERIOD OF TIME
Backing up a data set for a few days before an application upgrade for example can be done by the CLI.
TSO M9CLI BACKDSN M9.APPL.SOURCE RETPD(10D)
The backup will be deleted automatically after 10 days by the lifecycle process.
If the backup is not yet expired, the DELBACK command can be used to manually delete the backup.
Find the backup’s unique id using LISTDSN and delete it using DELBACK with purge:
TSO M9CLI DELBACK M9.APPL.SOURCE UNIQUEID(49CFIDK2)PURGE