In regard to: [Networker] Changing saveset directories on the fly, mgolden...:
Okay, I ended up writing a script to create an nsradmin input file to
change the save set directory daily before it runs. The first half of
it is a "determine yesterday's date" script I found online. Why
reinvent the wheel, right? :) Here's the script:
Thanks for posting! You've probably saved someone a lot of time down
the road.
Just a heads up -- if you're on a platform where the GNU version of the
date command is available, all of the date scripting can be replaced with
this:
date -d yesterday +%Y%m%d
That doesn't work with standard UNIX "date", but GNU date is so handy it's
one of my "must have's" for quick NetWorker related scripts. It also
supports using %s for seconds since the UNIX epoch, which can be
handy when doing scripting with mminfo and nsavetime.
Tim
--
Tim Mooney Tim.Mooney AT ndsu DOT edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
To sign off this list, send email to listserv AT listserv.temple DOT edu and type
"signoff networker" in the body of the email. Please write to networker-request
AT listserv.temple DOT edu if you have any problems with this list. You can access the
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|