|

These examples show how to perform basic save and restore operations using BacPac for OpenVMS.
BacPac can backup files, directories, or entire disks to disk or tape. BacPac syntax is similar to VMS Backup syntax and many of the command qualifiers are similar.
The default file extension for BacPac savesets is .PAC.
Save Examples
- Save a directory on a local disk to a saveset on a local disk.
$ BACPAC [USERDIR]*.* DUA2:[SAVEDIR]PACSET/PAC
- Image save of a local disk to a saveset on a local disk.
$ BACPAC/IMAGE DUA1: DUA2:[SAVEDIR]DUA1IMAGE/PAC
- Image save of a local disk to a local tape drive.
The local tape drive should be loaded with an initialized tape, but not mounted. BacPac will mount the tape. The default tape label for BacPac is BACPAC, but you can change this using the /label qualifier.
$ BACPAC/IMAGE DUA1: MKB600:DUA1IMAG/PAC/REWIND/LABEL=DUA1
Restore Examples
- Restore a directory to a local disk from a saveset on a local disk
$ BACPAC DUA2:[SAVEDIR]PACSET/PAC [USERDIR]*.*
- Image restore of a local disk from a saveset on a local disk.
$ BACPAC/IMAGE DUA2:[SAVEDIR]DUA1IMAGE/PAC DUA1:
- Image restore of a local disk from a local tape drive.
Image restore of a local disk from a local tape drive. The local tape drive should be loaded with the backup tape, and can be mounted or not mounted. If the tape is not mounted, BacPac will mount the tape.
$ BACPAC/IMAGE MKB600:DUA1IMAG/PAC/REWIND/LABEL=DUA1 DUA1:

|