Using the %OMABAKUP Macro to Perform Backups and Restores |
Your installation includes a backup program (backupServer.sas) and a restore program (restoreServer.sas) that use %OMABAKUP. These programs are customized for your environment and provide a full backup and restore of the metadata server. The programs are located in the metadata startup directory, which is in the following path:
SAS-configuration-directory\Lev1\SASMeta\MetadataServer
To run the programs, make sure that you have the appropriate user credentials. Then go to the metadata server startup directory and issue one of the following commands:
On Windows: MetadataServer -backup or MetadataServer -restore
On UNIX or z/OS: MetadataServer.sh -backup or MetadataServer.sh -restore
The backupServer.sas program does the following:
connects to the metadata server by using credentials that are stored in the file metaparms.sas, which is located in the metadata startup directory.
writes the backup files to a subdirectory called SASBackup in the metadata startup directory. (Be sure to include this directory in your site's daily backups.)
writes a log to a subdirectory called Logs in the metadata startup directory. A file with the suffix .lst is also written to the metadata startup directory. This file provides information about which repositories were backed up. (When you use the Backup Wizard to create the job, these files are written to the backup destination instead.)
The restoreServer.sas program does the following:
connects to the metadata server by using credentials that are stored in the file metaparms.sas, which is located in the metadata startup directory.
restores the backup files from the SASBackup directory to the appropriate subdirectories in the metadata startup directory.
writes a log to a subdirectory called Logs in the metadata startup directory. A file with the suffix .lst is also written to the metadata startup directory. This file provides information about which repositories were restored. (When you use the Backup Wizard to create the job, these files are written to the backup destination instead.)
You can further customize backupServer.sas and restoreServer.sas to specify a different backup location or to incorporate other %OMABAKUP options. For an explanation of each %OMABAKUP parameter, see Server Connection Statement: Reference.
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.