Hopefully this is an easy one. It has been awhile since I wrote new scripts for NetWorker and for some reason I can not think of the switch that will run the script and not apply the changes.
Whatever you put in script it WILL be executed unless commented out. If you wish to see more details of passed arguments, add set -vx. If you want to run NW commands emulating execution, most of the time there is -n switch for that (check manual). If you wish to see what you script would do instead of executing it, place echo before execution part.
This script was to adjust client retention from Infinite to 90 Day. Due to issues with our INDEX and Media DB I am going to purge them from NetWorker by manually deleting. I believe I can add something to after "nsrmm -d -S $y -y" like -No or something to test without actually doing. I have tested #'ing out the line and creating a log file to confirm the savesets but when deleting I do not believe you can ever be too careful.
bingo.1
1 Rookie
•
2430 Posts
668
0
Posted October 24th, 2018 05:00
Please be more specific - a script for what purpose:
- running a job (backup, clone, recover) or
- reconfiguring NW resources or
- ????