Is there a way to backup the directives in NMC for version control/use with another NMC server instance? I have tried searching the community board with no luck. Thanks in advance!
Only one small addition, the "-p" should actually be an "-i" to use an input file to read from.
You very easily can then turn the output file into an input file on another server, by changing that file contents by adding a "create" statement for each resource entry.
The same we tend to use for schedules and (retention) policies, and also - but that might require more tuning depending on changes in any naming convention you might have between old and new environment - when moving backup definitions from one server to another, however did that mainly up until nw8 for hundreds of clients, due to a customer business needing to be split up, not yet that much with nw9 and up.
Hello, I need to create a saveset to save some files from a text file created from another procedure in pre-command before the backup. Can I use the NMC GUI? Where can I write the text input file?
– I input_file In addition to taking the paths to save from the command line, read paths to save from the named file. The paths must be listed one per line. If no paths are specified on the command line, then only those paths specified in the file will be saved.
bingo.1
1 Rookie
•
2430 Posts
892
0
Posted September 15th, 2021 13:00
The easiest way to achieve that is to use nsradmin . This is the CLI command which is used to administrate the NW resources.
1. Prepare a text_file containing these 3 lines:
. nsr directive
p
q
2. Use the text_file as input file for the following command and redirect the output:
nsradmin -p text_file > output_file
3. Print/type the output_file
Enjoy.