Unsolved
2 Posts
0
966
September 15th, 2021 12:00
Backup Directives in NMC
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!
No Events found!
bingo.1
2.4K Posts
0
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.
barry_beckers
393 Posts
0
September 19th, 2021 07:00
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.
bingo.1
2.4K Posts
0
September 19th, 2021 10:00
As Berry pointed out, the correct command is nsradmin -i text_file > output_file , of course.
slyckgizmo
2 Posts
0
September 21st, 2021 06:00
Y'all are awesome that worked like a charm!
nicolson
1 Rookie
•
8 Posts
0
November 11th, 2021 02:00
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?
Thanks
barry_beckers
393 Posts
0
November 11th, 2021 04:00
in the backup command state "save -I "
from "save" man page:
– 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.