Networker

Re: [Networker] How to ignore .nsr files?

2010-04-05 14:01:08
Subject: Re: [Networker] How to ignore .nsr files?
From: George Sinclair <George.Sinclair AT NOAA DOT GOV>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 5 Apr 2010 13:59:26 -0400
W. Curtis Preston wrote:
I don't think you can.  That's one of the reasons I think .nsr files are
evil.  In environments I used to control, I would run a savepnpc command to
delete any .nsr files and let me know where they were so I could complain to
the right person.

The .nsr file that I tested (/opt/nsrdump/.nsr) looks like it should work fine. It has the following lines:

skip: 2010-04-05
# Ignore (recursive) all .nsr files.
#ignore

To test, I ran a save command from the client as:
save -s server -n -l full -b pool /opt/nsrdump

It only reports the following:

Client initiated backup.Option '-l' is ignored and backup is performed at level adhoc
66135:save: NSR directive file (/opt/nsrdump/.nsr) parsed
/opt/nsrdump/.nsr
/opt/nsrdump/lost+found/
/opt/nsrdump/
32477:save:
save: /opt/nsrdump 3 records 1 KB header 1 KB data

save: /opt/nsrdump 1 KB estimated

Next, I remarked out the 'skip' line and unremarked the ignore line. It reports all files under nsrdump/2010-04-05, and the total agrees with the size that I would expect to see.

I concur that '.nsr' files can cause headaches, and controlling things from the server is often preferable, but there are times when a '.nsr' file is preferred (in my opinion). In this case, /opt/nsrdump is a special file system on the server created for a specific purpose, and will not be used on a daily basis (only once in a while), so I'm not concerned about losing track of the '.nsr' file or forgetting that it's in place.

George


On Mon, Apr 5, 2010 at 7:40 AM, George Sinclair <George.Sinclair AT noaa DOT 
gov>wrote:

How can I force NetWorker to ignore all .nsr files? The file system in
question (/opt/nsrdump) lives on the server. This was something we created.
The backup will be run from the primary server, not from the client (e.g.
save command using '-i' option).

Do I simply create a client side directive as: /opt/nsrdump/.nsr with the
following two lines:
# Ignore (recursive) all .nsr files.
ignore

Or do I instead need something like:
# Ignore (recursive) all .nsr files.
<< ./ >>
ignore

Something else?

Thanks.

George

--
George Sinclair
Voice: (301) 713-3284 x210
- The preceding message is personal and does not reflect any official or
unofficial position of the United States Department of Commerce -
- Any opinions expressed in this message are NOT those of the US Govt. -

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






--
George Sinclair
Voice: (301) 713-3284 x210
- The preceding message is personal and does not reflect any official or unofficial position of the United States Department of Commerce -
- Any opinions expressed in this message are NOT those of the US Govt. -

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

<Prev in Thread] Current Thread [Next in Thread>