How to backup single windows directory but not sub-folders?
Updated: 21 May 2010 | 5 comments
I have a large folder structure on a Win2003 system.
I want to target a number of subfolders as seperate streams in a backup policy and all files in the top folder. There are some folder I do not want to backup
e.g. backup selection list of:
NEW_STREAM
E:\folder\*
E:\folder\sub-folder\
NEW_STREAM
E:\folder\sub-folder\
NEW_STREAM
E:\folder\sub-folder-2\
The above syntax (*) backups up all the folders and sub-folders! I want to backup, using 3 streams, top folder and the 3 sub-folders only.
Can anyone assist? NetBackup Master, Media and Client is all v6.5.3.
Thanks
discussion Filed Under:
Comments
You should use exclude and
You should use exclude and include lists
Add your parent folder to the exclude lists and the subfolders you want to backup to include list.
As include list overrides exclude list only subfolders is backup up.
Please see the following technotes for more information
http://seer.entsupport.symantec.com/docs/277155.htm
http://seer.entsupport.symantec.com/docs/268665.htm
missing files in parent
Anton, if he does that he won't get the files in the parent folder.
But it may be close to what you want.
But I hate making big exclude files.
do the \folder\*
exclude \folderr\sub-folder\ and folder\sub-folder-2\
then do a new stream for \folder\sub-folder\
I think this will exclude the sub folders in the stream for the parent stream, and force the backup of the sub folders because you say to back them up.
But test and verify... not 100% sure, as I just don't backup this way.
I don't have to know how to spell....I work on Unix.
NetBackup 7.0.1 - AIX & Windows
I believe that anything in the exclude list will be excluded
even if you stipulate it in the policy as a backup selection.
The only option I see would be to have 2 separate policies:
1) for the sub-folders you want to backup up entered as per the original post (without the E:\folder\* entry)
2) for the E:\folder\* as a backup selection with an exclude list of everything else (this could be a pain to administer & could well affect backup performance whilst NB determines what needs backing up)
Regards Andy
"It's not too late to panic ..."
i think this might
i think this might help..
E:\folder\*.*
but it may not backup files with no extension
I tried *.* BUT this promptly
I tried *.* BUT this promptly broke when I discovered a folder called folder.bak ... which was a copy of another large folder that I didn't want to backup!
I ended up specifying wildcard *.dat, *.xls etc etc which worked ok but of course, will break if it finds a folder called xx.dat!!
Can NetBackup be told backup a single folder and ignore all sub-folders in just plain "stream" specifications? You are correct, I could accomplish this by using exclude and include lists but that becomes very complicated to maintain.
NBU v7.1.0.1 Master and Media servers on RHEL 5 & Win2008; SAN based LTO 3 and 4 tape libraries.
Linux, Solaris, Windows and OpenVMS clients.
PureDisk, SLP, VMware, Oracle, SQL/Server and Exchange agents
VBR and OpsCenter
Would you like to reply?
Login or Register to post your comment.