BookmarkSubscribeRSS Feed
Puru867
Calcite | Level 5

Hi All,

 

Our deployment backup jobs are failing , so we did a research and found that the sasConfig path for one of the sasTiers is wrongly assigned.

 

We tried to modify the sasTier config using sas-update-backup-config script, we can only able to set included as true or false however the backup is failing with same error.

 

Actuall sasConfig has to be set as /sascommon/SAS/SASConfig/grid1/Lev1 ,

please let us know how to do this 

 

Current output :

 

id: tier16
tierName: tier16
sasHome: /sascommon/SAS/SASHome
sasConfig: /sascommon/SAS/SASconfig/grid1/Lev1
included: true
tierHost
hostType: lax
hostName: xxxxxxxxxxx

 

 

We executed the following script to do this.

./sas-update-backup-config -host xxxxxxxxx -port 7980 -protocol HTTP -user sasadm@saspw -password xxxxxxxxx -sourcetype sastiers -inputdata conf/sample/sas-update-backup-config-sastier.json -id tier16

 

conf/sample/sas-update-backup-config-sastier.json file:

{
"tierName":"tier16",
"sasConfig":"/sascommon/SAS/SASConfig/grid1/Lev1",
"included": true
}

 

NOTE: host and password is replaced with xxxxx.

3 REPLIES 3
AnandVyas
Ammonite | Level 13

Hi @Puru867 

 

Is your SAS platform on or above SAS 9.4M3? I see that this syntax is supported only on and above this SAS Version.

 

Syntax for sas-update-backup-config
The sas-update-backup-config command has the following syntax.
sas-update-backup-config web-connection-options
<-inputdata input-data-pathname>
<-sourcetype CONFIGDIRECTORIES | CONTENTSERVER | DATABASE
| CUSTOMDIRECTORIES | METADATASERVER>
<-id tier-id>
<-d>
Note: This syntax is effective with SAS 9.4M3. In previous SAS 9.4 releases, the syntax includes only the web connection options and the -inputdata option.
Puru867
Calcite | Level 5

Hi,

 

Thanks for getting on this.

Yes the platform is in SAS 9.4 M5.

AnandVyas
Ammonite | Level 13

I am seeing the documentation on this link and it states that using sas-update-backup-config you can only update a few things as below:

 

Use sas-update-backup-config to update the backup configuration properties that are in effect for the deployment. 
You can do the following: Update your site’s basic backup configuration,
including the number of days to retain backups,
email addresses for alerts, and whether scheduled backups are to run.

In deployments with homogeneous operating system environments, you can also use this command to specify or update the central vault location. Define filters that specify tiers, servers, databases, directories, or files to include or exclude from the backup.

For the metadata server, the filter definition can contain an option to reorganize the metadata repositories. The configuration changes and filters affect all subsequent scheduled and ad hoc backups.

I also tried to change this config path using SAS Backup Manager, However I wasn't able to do that. I think your best bet is to add your existing config directory (which was missed out due to typo) as a custom directory which will then be included into your backup config.

You can find the example here - Example: Filter to Add a New Custom Directory 

 

Since you haven't provided any info on what the error was like, if it was failing directly when trying to fetch SASConfig directory or it only skipped the directory/tier and ran successfully for other tiers. Based on which my suggestion may work or not.

 

I would suggest to reach out TS for more support if you do not wish to try out alternatives. I wasn't able to find much on how to directly update the ConfigPath. Understand it is auto picked by SAS Deployment Manager Agents which help in running the backup process.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 984 views
  • 0 likes
  • 2 in conversation