• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Include exclude

ammu440

ADSM.ORG Member
Hi all,

I wanted to exclude all the folders under D and Include only one directory (backup) under the D drive. Somehow this option does not work.

EXCLUDE "D:\...\*"
INCLUDE "D:\Testfolder\backup"
 

LED888

ADSM.ORG Moderator
Update from
INCLUDE "D:\Testfolder\backup"

to

INCLUDE "D:\Testfolder\backup\*"

If there are sub directory under backup that we want to backup, then
INCLUDE "D:\Testfolder\backup\...\*"

Since there is a change in the dsm.opt file, the schedule service need to be stop and restarted so that the new updates will be read.

Good Luck,
Sias
 

ammu440

ADSM.ORG Member
Sure. But I cannot exclude the directories under D folder? is that the Exclude option is correct?
 

LED888

ADSM.ORG Moderator
I cannot exclude the directories under D folder?
To exclude ALL the directories under the D folder....
EXCLUDE.DIR "D:\...\*"

If we have...
EXCLUDE.DIR "D:\...\*"
INCLUDE "D:\Testfolder\backup\*" <- The directory structure have been excluded, we can not backup files that are in the directory 'backup".

Include/exclude are read from bottom to top, which is true. There are some caveats.
Parameters like EXCLUDE.DIR are read first and then the incl/excl are read from bottom to top.


I wanted to exclude all the folders under D and Include only one directory (backup) under the D drive.
If this is what we want to do, we can not use the EXCLUDE.DIR.
Once we exclude ALL the directories, we can not have INCLUDE "D:\Testfolder\backup\*" because the directory structure have been excluded.


is that the Exclude option is correct?
This is correct if we only want to backup files that are under the sub directory called backup.

EXCLUDE "D:\...\*"
INCLUDE "D:\Testfolder\backup\*"

This is correct if we only want to backup files and sub directories that are under the sub directory called backup.

EXCLUDE "D:\...\*"
INCLUDE "D:\Testfolder\backup\...\*"

One way to check to see if the include/exclude is set correctly.
Open the TSM Client GUI (dsm.exe) and see what we can backup.
Files that are excluded will have an icon of a red circle with a line through it.

Since we only want to backup the directory D:\Testfolder\backup\ and we want to excluded all the other directories.

EXCLUDE.DIR "D:\a*"
EXCLUDE.DIR "D:\b*"
EXCLUDE.DIR "D:\M*"
EXCLUDE.DIR "D:\1st letter of directory that we do not want backed up*"
INCLUDE "D:\Testfolder\backup\...\*"


Good Luck,
Sias
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 18 18.4%
  • Keep using TSM for Spectrum Protect.

    Votes: 60 61.2%
  • Let's be formal and just say Spectrum Protect

    Votes: 12 12.2%
  • Other (please comement)

    Votes: 8 8.2%

Forum statistics

Threads
31,716
Messages
135,198
Members
21,721
Latest member
abucci63
Top