Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These commits enable the Cookbook to create backups of ArcGIS Server Site or the complete WebGIS (ArcGIS Server, Portal for ArcGIS, ArcGIS Data Store). It only works for Windows. There is an additional task to delete backups after a defined number of days.
The configuration is ease:
node['arcgis']['backups']['site_backup_dir']
--> the location where the backup of ArcGIS Server Site will be placednode['arcgis']['backups']['webgis_backup_dir']
--> the location where the backup of ArcGIS Server Site will be placedUnder the hood, the code does the following:
node['arcgis']['run_as_user']
within Windows to log on as batch job<<Portal-Install-Dir>>\tools\webgisdr\Custom_webgisdr.properties
<<Portal-Install-Dir>>\webgisdr.bat
with the previously configured WebGIS-Backup-Configuration-File<<Server-Install-Dir>>\tools\admin\backup.py
with the appropriate argumentsnode['arcgis']['backups']['retention_period']
)Unfortunately, I was not able to implement step 1 with either pure Ruby or Chef code. I use the additional PowerShell Module Carbon for this - the installation of Carbon is done within a dedicated PowerShell script that I execute before Chef.
@pbobov Maybe you find a better solution.