Hi Michael,
You can only use wildcard characters on the file name portion of a backup
specification; not directories.
One approach, as others have mentioned, is to use INCLUDE/EXCLUDE
statements to handle this. For example, you could add these to the dsm.opt
file:
include D:\Folders\...\*
exclude D:\Folders\*
exclude.dir D:\Folders\[$0-9b-z]*
and then back up like this:
dsmc incremental D:\Folders\ -subdir=yes
The exclude.dir statement will prevent traversal and backup of all
directories immediately below D:\Folders with names that begin wtih '$',
the digits 0 - 9, and the letters b - z. If this directory happens to have
subdirectories that begin with characters I did not mention, then you can
just add them to the character class between the '[' and ']'.
The exclude statement for D:\Folders\* will prevent backup of file objects
that live directly in the D:\Folders directory, e.g., D:\Folders
\somefile.txt.
The include statement will process all files and directories in D:\Folders
except for the ones excluded as above.
Best regards,
- Andy
____________________________________________________________________________
Andrew Raibeck | Tivoli Storage Manager Level 3 Technical Lead |
storman AT us.ibm DOT com
IBM Tivoli Storage Manager links:
Product support:
http://www.ibm.com/support/entry/portal/Overview/Software/Tivoli/Tivoli_Storage_Manager
Online documentation:
http://www.ibm.com/support/knowledgecenter/SSGSG7/welcome
Product Wiki:
https://www.ibm.com/developerworks/community/wikis/home/wiki/Tivoli%20Storage%20Manager
"ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU> wrote on 2015-10-29
09:03:58:
> From: Michael Devenney <mdevenney AT RETSD.MB DOT CA>
> To: ADSM-L AT VM.MARIST DOT EDU
> Date: 2015-10-29 09:04
> Subject: question about command line backup syntax
> Sent by: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
>
> Hello
>
> I have a Windows server with the following file structure D:\Folders\
>
> In this folder are A1folder, A2folder, A3folder, B1folder, C1folder
>
> I am trying to backup only the folders starting with the letter "A"
> and their subfolders using the command line backup
> dsmc backup d:\folders\A* -subdirs=yes
>
> This is not backing up the folders starting with "A".
>
> Can someone help with the correct syntax.
>
> Thanks
>
> Michael Devenney CNE, MCTS, A+, Server+
> Service Administrator
> River East Transcona School Division
>
>
> CONFIDENTIALITY NOTICE: This e-mail message, including any
> attachments, is for the sole use of the intended recipient(s), and
> may contain confidential and privileged information. Any
> unauthorized review, use, disclosure or distribution is prohibited.
> If you are not the intended recipient, please contact the sender by
> reply e-mail and destroy all copies of the original message.
>
|