• 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.

Exclude files in folder, but include the folder

marclant

ADSM.ORG Moderator
#2
How do i exclude all files and sub-directories in a folder but include the folder itself in backups?
It does that by default. Exclude/include only affects files, the entire directory tree is backed up.

However, if you use exclude.dir, that excludes the directory, subdirectories and all files under it.
 

illllm

ADSM.ORG Member
#5
ok I tried many combinations but its not working

DOMAIN /fol1

EXCLUDE.DIR /fol1/fol2
EXCLUDE.DIR /fol1/fol3
EXCLUDE /fol1/fol3/dir2

this is the dsm.sys

i tried
exclude.file
exclude
exclude.file.backup

nothing works. The folder is not being backed up.
 

illllm

ADSM.ORG Member
#7
the exclude.dir is commented out.

the contents in the folder are randomly generated and adds up to about 500 TB to 1 PB, so we cannot exclude folder by folder.
 

marclant

ADSM.ORG Moderator
#8
So, the syntax I gave you excludes all the files in that directory and subdirectories, while still backing up the directory structure.
 

marclant

ADSM.ORG Moderator
#10
If you want to backup /fol1/fol3, but not the content, you could do:

Code:
EXCLUDE /fol1/fol3/*
EXCLUDE.DIR /fol1/fol3/*
First one excludes files in /fol1/fol3, but not subdirectories
Second excludes all subdirectories inside /fol1/fol3 and their files.
 

illllm

ADSM.ORG Member
#12
I tried this:

EXCLUDE.DIR /fol1/fol3/*

but the folder is not being backed up

I am going to ask the admins to create a file just for TSM and then add that file only to the backup list as an Include. This way the folder also will be backed up
 

marclant

ADSM.ORG Moderator
#13
Is that the only include/exclude in your option file? If not, there must be another one overriding this.

By default, everything is included until you start adding excludes. There could be excludes from the server as well.

Use this command to see the effective list of include exclude:
dsmc query inclexcl
 

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: 10 16.7%
  • Keep using TSM for Spectrum Protect.

    Votes: 35 58.3%
  • Let's be formal and just say Spectrum Protect

    Votes: 9 15.0%
  • Other (please comement)

    Votes: 6 10.0%

Forum statistics

Threads
31,185
Messages
132,720
Members
21,341
Latest member
sskkss
Top