Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant get Legato to exclude some directories

Status
Not open for further replies.

smithrob

MIS
May 17, 2007
18
US
Here is the folder
D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00000448 eProcurement 2001\Other Documents\Other Documents\BuyerX 3.0 Documents From Livelink\06 - Implementation and Architecture\Production Architecture\BuyerXpert 3.0.1\

Within this foler are 2 subfolders that Legato cannot access, so I would like it to skip them. They are
BuyerXpert 3.0 Product Documentat..
BuyerXpert 3.0 Product Documentat.

Note that there are several other folders that will be set up the exact same way. A long path, and 2 or more folders in that folder than need to be skipped. Here is my current directive:

<< "D:\Program Files\Quest Software\Quest Storage Suite" >> +skip: *
<< "d:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00000448 eProcurement 2001\eProcurement2001\Other Documents\Other Documents\BuyerX 3.0 Documents From Livelink\06 - Implementation and Architecture\Production Architecture\BuyerXpert 3.0.1" >>
+skip: *Documentat.
+skip: *Documentat..
<< "d:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00001278 BASYS Replacement\Business Support Documents & Emails\Other Documents\Phase 1 - Iniital Data Conversions" >>
+skip: *Document.
+skip: *Document..
<< "e:\Shared2\ApplMgmt\TechUpgrades\Unix Server Refresh\Investment Apps\CRIS-ICA\Testing\Regression_dinv301_integ_completed2003Apr14\Test03_OnlinePrep_Test_Cases_01-26_completed2003Apr11\ipdev1_output\ICA\ARCHIVE\20030411\083200\pdf\DONE\BCFG" >>
+skip: PENSIONPORTFOLIORP.
+skip: PENSIONPORTFOLIORP..
+skip: ALTGICPORTFOLIORPT.
+skip: ALTGICPORTFOLIORPT..



Should these be set to "+null" instead? I am still getting errors during the backup. With +skip, does Legato still try to open or ready the folder being skipped?

Here is the error:
savegrp: suppressed 6 lines of verbose output
<ERROR> : cannot opendir "." (D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00000448 eProcurement 2001\Other Documents\Other Documents\BuyerX 3.0 Documents From Livelink\06 - Implementation and Architecture\Production Architecture\BuyerXpert 3.0.1\BuyerXpert 3.0 Product Documentat..\): No such file or directory
<ERROR> : cannot opendir "." (D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00001278 BASYS Replacement_copy\Business Support Documents & Emails\Other Documents\Phase 1 - Iniital Data Conversions\Client Specs from Sageo -- Most Recent in Project Document.\): No such file or directory
<ERROR> : cannot opendir "." (D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00001278 BASYS Replacement_copy\Business Support Documents & Emails\Other Documents\Phase 1 - Iniital Data Conversions\Client Specs from Sageo -- Most Recent in Project Document..\): No such file or directory



Thanks for any help!

-Rob
 
null" will not help - it works almost like skip. Try

+skip: BuyerXpert*

instead.
 
Hi,

I think your errors show up due to the long path. If my memory serves me right, NetWorker can only handle a file and path of 256 characteres long, and those seems to be longer than that. Windows should also refuse to create these long paths, but it doesn't when you create files and folders through a share (that shortens the path).

I would make sure to change the path instead of writing a directive skipping those folders. It might be files you still want to back up.
 
Unfortunately, there is a folder called:
BuyerXpert 3.0 Product Documentation
along with some other files that DO need to be backed up.

:(

 
...and getting the users to move their folders is also probably not an option.
 
There is the "always" directive you can use to do this. Be careful - it will not help on files/dirs you already excluded.
 
I got a bit interested in this. It looks like EMC updated the behaviour of this in NetWorker 7.1.2 so NetWorker actually backs up longer paths than what is actually allowed by the OS. So if you are running anything below 7.1.2, maybe you should try to upgrade. I think that is a much better option than skipping the files (if it works for you).

 
With your long pathname, it might be a problem anyway. I think the max. lenght is 1kB (1024 characters).

Another alternative is to use a local directory which is a file called "nsr.dir" in the directory you want to ship. Then specify the filenames. As you do not want to back them up, the contents could be as easy as "skip: ."

Do not forget that you need such file in each directory you want to skip.
 
So use "always" first, before the "skip" exclusion?

Upgrade probably wont help, already on 7.3.1

Downside to this now is that if a new file is added, it won't be covered...
And in a "Skip" "null" or "Always" what do you do for a file or directory that has spaces in it?
 
To the post about local directives...is there anything you need to do to allow them? Or will the always be used unless specifically excluded....and do they play nice with server based directives?

I should probably get to a NetWorker class eh?

-Rob
 
Local directives work in general the same way - if a file nsr.dir (.nsr on Unix/Linux) is found in the directory, the 'walker' travels along during the backup, the included directive(s) will be obeyed.

The only problem is that you might skip directories for certain tests and you forget to remove them later during a 'hot' backup.
 
Thanks all for the assistance. Still hving some problems though.
Heres the error output:

Jun 05 04:21:14 b04legp01.prd.manulifeusa.com: * pbosfile06.prd.manulifeusa.com:d:\Shared\Cfis 1 retry attempted
Jun 05 04:21:14 b04legp01.prd.manulifeusa.com: * pbosfile06.prd.manulifeusa.com:d:\Shared\Cfis save: VSS Enabler is requested from EMC Legato License Manager.
Jun 05 04:21:14 b04legp01.prd.manulifeusa.com: pbosfile06.prd.manulifeusa.com: d:\Shared\Cfis level=incr, 7036 KB 00:04:54 170 files
Jun 05 04:21:14 b04legp01.prd.manulifeusa.com: * <ERROR> : cannot opendir "." (D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00000448 eProcurement 2001\eProcurement2001\Other Documents\Other Documents\BuyerX 3.0 Documents From Livelink\06 - Implementation and Architecture\Production Architecture\BuyerXpert 3.0.1\BuyerXpert 3.0 Product Documentat.\): No such file or directory
Jun 05 04:21:14 b04legp01.prd.manulifeusa.com: * <ERROR> : cannot opendir "." (D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00000448 eProcurement 2001\eProcurement2001\Other Documents\Other Documents\BuyerX 3.0 Documents From Livelink\06 - Implementation and Architecture\Production Architecture\BuyerXpert 3.0.1\BuyerXpert 3.0 Product Documentat..\): No such file or directory
<ERROR> : cannot opendir "." (D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00000448 eProcurement 2001\eProcurement2001\Other Documents\Other Documents\BuyerX 3.0 Documents From Livelink\06 - Implementation and Architecture\Production Architecture\BuyerXpert 3.0.1\BuyerXpert 3.0 Product Documentat..\): No such file or directory
<ERROR> : cannot opendir "." (D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00001278 BASYS Replacement_copy\Business Support Documents & Emails\Other Documents\Phase 1 - Iniital Data Conversions\Client Specs from Sageo -- Most Recent in Project Document.\): No such file or directory
<ERROR> : cannot opendir "." (D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00001278 BASYS Replacement_copy\Business Support Documents & Emails\Other Documents\Phase 1 - Iniital Data Conversions\Client Specs from Sageo -- Most Recent in Project Document..\): No such file or directory

Heres the directive for the saveset:

<< "D:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00000448 eProcurement 2001\Other Documents\Other Documents\BuyerX 3.0 Documents From Livelink\06 - Implementation and Architecture\Production Architecture\" >>+skip:BuyerXpert*
<< "d:\Shared\Cfis\SDLC\Projects\All Completed Projects\CFIS00001278 BASYS Replacement\Business Support Documents & Emails\Other Documents\Phase 1 - Iniital Data Conversions" >>+skip:Client*


Just cant seem to get it to skip these guys. Any ideas?
 
The syntax is important: Make sure that there is a <cr> before you start a new line with "+skip: name(s)". I also recommend to keep the tab at the beginning of that line.
Simply cut and paste another directive - then edit it.

I did not check this but it almost looks like the pathname maybe too long. In this case you can still use local directive files (nsr.dir) in this directory.

BTW - i love self-describing names but these pathenames are jokes. They even contain duplicate directory names.
 
You have NO idea...the pain...the horror...the agony of managing these fileservers....its a good thing i dont keep any sharp object, rope, or hemlock near my desk
:)

I'll try the local directive route.
 
As I mentioned in the beginning of this thread, I don't think the right way to fix the problem is to exclude directories and files that have a too long pathname.

The problem is within the path and that Windows actually allows you to create files and paths that long if you are doing it through a share.

What will you say to your users when they request a restore of a file with a tremendous long path? -The path was to long so we excluded them from the backups... I think you should seriously look at the source of the problem. But I can see that these servers are causing you much headache anyway, maybe this is just too much?

 
Thats the politics my man. As always, I'll fight the good fight, and try to explain the risks here...but as usual, I will lose.
Oh well :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top