Networker

[Networker] How save set recover works? - HELP!!!

2009-10-27 17:16:36
Subject: [Networker] How save set recover works? - HELP!!!
From: George Sinclair <George.Sinclair AT NOAA DOT GOV>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 27 Oct 2009 17:11:40 -0400
Hi,

I'm really hoping someone can explain this mystery!!! This has been bugging me for a long time now. Maybe there's a simple explanation, and I'm just missing something.

Why is that sometimes sometimes when you're recovering data, NW rebuilds the directories in the path, and sometimes it just dumps the final directory without rebuilding the parent directories? I've seen this happen with save set recover, recover and nwrecover, too.

For example, if I back up /data/dir1/dir2, and then I recover it as:

recover -s serve -d /relocate_dir -S ssid

I would expect to get /relocate_dir/data/dir1/dir2

Well, sometimes I do, but other times I might just get

/relocate_dir/dir2

Of course, running nsrinfo against the nsavetime value for the affected ssid *does* show all the path components, but when it comes to recovering it, I never know what to expect with NW as far as the path re-creation. Today, I added the following save sets to an NSR client resource and ran a level full:

/data/old/2001
/data/old/files/a.txt
/data/old/files/b.txt

I then recovered the data on the client as:

recover -s server -d /relocate_dir -S ssid1 -S ssid2 -S ssid3

where ssid1=/data/old/2001; ssid2=/data/old/files/a.txt; ssid3=/data/old/files/b.txt

Here's what I got:

/relocate_dir/2001
/relocate_dir/files/a.txt
/relocate_dir/files/b.txt

1. Why does it not rebuild 'data/old' ???

However, when I recovered these in two steps as:

recover -s server -d /relocate_dir -S ssid2 -S ssid3
recover -s server -d /relocate_dir -S ssid1

I instead get this:

/relocate_dir/a.txt
/relocate_dir/b.txt
/relocate_dir/2001

2. Why would it drop the 'files' directory?


--
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