In SAS 9.4, we use Deployment Backup and Recovery tool to take backup. I know the tool name sounds complex but believe me it's not. SAS recommends to consider the below points before taking backup.
What do you backup?
In SAS 9.4, you do backup for:
In above list, metadata repository and configuration directory are pretty straight forward. You deal with them everyday. What is SAS Content Server? I know this sounds alien. In SAS Content server we have metadata objects like contents of SAS Information Delivery Portal, report definitions, report dependant files (PDF, image and other contents. You can see those contents in SAS Management Console Folders tab, My Folder -> Data.
What should you know about Deployment Backup and Recovery tool?
From the name it is clear that you are going to use this tool for backup and recovery process in SAS 9.4 environment. This is not a client tools like SAS Management Console, so you don't have GUI for this tool. It is a command line utility, (ie) you use Windows Command Prompt (cmd) in Windows Server and terminal (Putty if you are connected via SSH) in Linux Server. You can take backup and restore just by providing the command. However for running this command you need to check whether Deployment Agent process is running. We call these commands as Batch Commands. Using the commands you can backup any of the SAS content I mentioned in above section. You can get list of commands from SAS Support Website.
Metadata Server backup utility tools is used by Deployment Backup and Recovery tool for Metadata Server backup. You can see the Metadata Server backup utility tool in SAS Management Console. So for metadata server, you can do backup directly using Metadata Server backup utility tool in SAS Management Console instead of Deployment Backup and Recovery tool.
Where will the backup files get stored?
For non-cluster environment:
It is necessary for SAS Admins to be aware of the backup location. The default backup location is base-config-directory/Lev1/Backup/Vault (not for SAS Server backup). This directory automatically get created when first backup is done.
I already mentioned Metadata Server backup is done by Metadata Server backup utility. You can specify the location in Metadata Server backup utility. So the backup files will be get stored in the location you configured in Metadata Server backup utility. By default it get stored in base-config-directory/Lev1/SASMeta/MetadataServer/Backup
For cluster environment:
For cluster environment you need to provide a centralized backup location. All nodes of the cluster should be able to write to that location. The backup location can be specified using SAS Deployment Wizard. You can change the backup location using sas-update-backup-config command.
Can I do backup using OS commands?
Of-course you can do. But make sure that you pause metadata server to OFFLINE state. In end of the day, SAS contents are just files in OS. So you can copy and paste it in the backup location by OS commands. You have already learned the default location of backup in previous section.
- Do full backups regularly
- If you are going to make any changes in config file or any major changes, then do backup before and after change.
- Make sure the backup directory is reachable.
What do you backup?
In SAS 9.4, you do backup for:
- Metadata repository
- SAS Content Server
- SAS Web Infrastructure Platform Data Server PostgresSQL databases
- Configuration directory
In above list, metadata repository and configuration directory are pretty straight forward. You deal with them everyday. What is SAS Content Server? I know this sounds alien. In SAS Content server we have metadata objects like contents of SAS Information Delivery Portal, report definitions, report dependant files (PDF, image and other contents. You can see those contents in SAS Management Console Folders tab, My Folder -> Data.
What should you know about Deployment Backup and Recovery tool?
From the name it is clear that you are going to use this tool for backup and recovery process in SAS 9.4 environment. This is not a client tools like SAS Management Console, so you don't have GUI for this tool. It is a command line utility, (ie) you use Windows Command Prompt (cmd) in Windows Server and terminal (Putty if you are connected via SSH) in Linux Server. You can take backup and restore just by providing the command. However for running this command you need to check whether Deployment Agent process is running. We call these commands as Batch Commands. Using the commands you can backup any of the SAS content I mentioned in above section. You can get list of commands from SAS Support Website.
Metadata Server backup utility tools is used by Deployment Backup and Recovery tool for Metadata Server backup. You can see the Metadata Server backup utility tool in SAS Management Console. So for metadata server, you can do backup directly using Metadata Server backup utility tool in SAS Management Console instead of Deployment Backup and Recovery tool.
Files backed up by Metadata Server Backup utility in MetadataServer directory |
For non-cluster environment:
It is necessary for SAS Admins to be aware of the backup location. The default backup location is base-config-directory/Lev1/Backup/Vault (not for SAS Server backup). This directory automatically get created when first backup is done.
I already mentioned Metadata Server backup is done by Metadata Server backup utility. You can specify the location in Metadata Server backup utility. So the backup files will be get stored in the location you configured in Metadata Server backup utility. By default it get stored in base-config-directory/Lev1/SASMeta/MetadataServer/Backup
For cluster environment:
For cluster environment you need to provide a centralized backup location. All nodes of the cluster should be able to write to that location. The backup location can be specified using SAS Deployment Wizard. You can change the backup location using sas-update-backup-config command.
Can I do backup using OS commands?
Of-course you can do. But make sure that you pause metadata server to OFFLINE state. In end of the day, SAS contents are just files in OS. So you can copy and paste it in the backup location by OS commands. You have already learned the default location of backup in previous section.
Comments
Post a Comment