question about command line backup syntax
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.
Re: question about command line backup syntax
The two backup commands are Inc For incremental, and Sel For selective backup. Substitute either depending on the type of backup desired. -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Michael Devenney Sent: Thursday, October 29, 2015 9:04 AM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] question about command line backup syntax 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.
Re: question about command line backup syntax
I would try to do with include-exclude in dsm.opt file http://www-01.ibm.com/support/knowledgecenter/SSGSG7_7.1.3/client/c_cfg_inclexclwildcardchars.html?lang=en or include exclude with client option set in ISP 7.1.3, dsmadmc console > h 3.15.5 after that you can schedule command ... Best Regards Chavdar You can alos check exclude.dir option On Thu, Oct 29, 2015 at 3:13 PM, Lee, Gary wrote: > The two backup commands are > > Inc > For incremental, and > > Sel > > For selective backup. > > Substitute either depending on the type of backup desired. > > -Original Message- > From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of > Michael Devenney > Sent: Thursday, October 29, 2015 9:04 AM > To: ADSM-L@VM.MARIST.EDU > Subject: [ADSM-L] question about command line backup syntax > > 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. >
Re: question about command line backup syntax
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 | stor...@us.ibm.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" wrote on 2015-10-29 09:03:58: > From: Michael Devenney > To: ADSM-L@VM.MARIST.EDU > Date: 2015-10-29 09:04 > Subject: question about command line backup syntax > Sent by: "ADSM: Dist Stor Manager" > > 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. >
Re: question about command line backup syntax
Hello Andy Thank You for the information. I will use your suggestion. Regards Michael Devenney -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Andrew Raibeck Sent: November-04-15 11:25 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] question about command line backup syntax 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 | stor...@us.ibm.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" wrote on 2015-10-29 09:03:58: > From: Michael Devenney > To: ADSM-L@VM.MARIST.EDU > Date: 2015-10-29 09:04 > Subject: question about command line backup syntax Sent by: "ADSM: > Dist Stor Manager" > > 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. > 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.