Hi Eric, Based on your previous response to the exclude.dir suggestion, I suppose you have a scenario like this:
* Exclude all other files underneath /tech/splunk, * but directory objects are still processed. exclude /tech/splunk/.../* * Back up everything in /tech/splunk/keep1 and /tech/splunk/keep2 include /tech/splunk/keep1/.../* include /tech/splunk/keep2/.../* In this case, you cannot avoid scanning and backing up all subdirectories of /tech/splunk. Another alternative is to consider using the VIRTUALMOUNTPOINT (https://www.ibm.com/docs/en/storage-protect/8.1.21?topic=reference-virtualmountpoint) option in dsm.sys, like this: ... virtualmountpoint /tech/splunk virtualmountpoint /tech/splunk/keep1 virtualmountpoint /tech/splunk/keep2 exclude.fs /tech/splunk ... The virtual mount points are effectively treated like separate file systems. The exclude.fs then prevents backup of everything in /tech/splunk that is NOT part of the other virtual mount points. When using the command line client for queries and restores, you might need to put curly braces '{' and '}' around the file system name to avoid ambiguity in file specifications. For example, if you want to search for a file named myfile.txt, but you are not sure in which directory the file resides, then you will have to do this: dsmc query {/tech/splunk/ Also, if you want to restore everything you backed up under /tech/splunk, you cannot do this: dsmc restore /tech/splunk/ -subdir=yes Instead, you need to do this: dsmc restore {/tech/splunk/keep1} -subdir=yes dsmc restore {/tech/splunk/keep2} -subdir=yes I suggest trying this concept in a test environment first, to see if it is feasible for you. Regards, Andy Andrew Raibeck IBM Storage Protect Level 3 stor...@us.ibm.com -----Original Message----- From: ADSM: Dist Stor Manager <ADSM-L@VM.MARIST.EDU> On Behalf Of Loon, Eric van (ITOP DI) - KLM Sent: Tuesday, 27 February, 2024 08:55 To: ADSM-L@VM.MARIST.EDU Subject: [EXTERNAL] Re: Fiddling with exclude statement Hi Skylar, Yes, we have a DIRMC set in the client option file. I removed it, just to check whether it makes any difference, but the subdirectories are still being backed up, with the only difference that they are bound to the longest retention mgmtclass ofcourse. Thanks for your help. Kind regards, Eric van Loon Air France/KLM Core Infra ________________________________ From: ADSM: Dist Stor Manager <ADSM-L@VM.MARIST.EDU> on behalf of Skylar Thompson <skyl...@uw.edu> Sent: Monday, February 26, 2024 17:07 To: ADSM-L@VM.MARIST.EDU <ADSM-L@VM.MARIST.EDU> Subject: Re: Fiddling with exclude statement Do you have DIRMC set? My experience is that supersedes any normal exclude rules, though would only backup the directories and not their contents. I think exclude.dir would work to exclude that path and avoid the directories being backed up, though. On Mon, Feb 26, 2024 at 03:59:47PM +0000, Loon, Eric van (ITOP DI) - KLM wrote: > Hi everybody, > > I'm trying to exclude a directory called /tech/splunk (including all > subdirectories) through a client option set. The exclude on the client seem > to be processed OK: > > [root@hostname ~]# dsmc q inclexcl|grep splunk > Exclude All /tech/splunk/.../* Server > > But when I run an incremental on /tech, I do see subdirectories being backed > up: > > Incremental backup of volume '/tech' > Directory--> 1,024 /tech/splunk/etc [Sent] > Directory--> 1,024 /tech/splunk/var [Sent] > Directory--> 1,024 /tech/splunk/var/run [Sent] > Successful incremental backup of '/tech' > > I don't understand why, what am I doing wrong here? Thanks for any help in > advance! > > > Kind regards, > > Eric van Loon > > Air France/KLM Core Infra > ******************************************************** > For information, services and offers, please visit our web site: > http://www.klm.com<http://www.klm.com> . This e-mail and any attachment may > contain confidential and privileged material intended for the addressee only. > If you are not the addressee, you are notified that no part of the e-mail or > any attachment may be disclosed, copied or distributed, and that any other > action related to this e-mail or attachment is strictly prohibited, and may > be unlawful. If you have received this e-mail by error, please notify the > sender immediately by return e-mail, and delete this message. > > Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its > employees shall not be liable for the incorrect or incomplete transmission of > this e-mail or any attachments, nor responsible for any delay in receipt. > Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal > Dutch Airlines) is registered in Amstelveen, The Netherlands, with > registered number 33014286 > ******************************************************** -- -- Skylar Thompson (skyl...@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His ******************************************************** For information, services and offers, please visit our web site: http://www.klm.com . This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ********************************************************