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

Network share backup exclude query

Arrow

Active Newcomer
#1
Hi all,

I'm currently backing up a network share and it's working, however I want to be able to exclude some folders but cannot work out how to do this.

For example, currently in my dsm.opt file I have DOMAIN "\\hostname\share$", the share has 3 folders (a, b, c) how do I set it so that only folder a gets backed up? I've tried EXCLUDE, EXCLUDE.DIR etc. but haven't had any luck.

Thanks.
 

marclant

ADSM.ORG Moderator
#2
What's the full syntax you used in your option file?

Typical exclusions like this where you only want the content of one directory is that you start by excluding everything, then include the one you want.

Code:
exclude \\hostname\share$\...\*
include \\hostname\share$\b\...\*
Note that include/excludes only apply to files, the directory structure will be backed up for the entire share, but only the files in \\hostname\share$\directory and subdirectories.
 

Arrow

Active Newcomer
#3
Hi marclant, thanks for your help.

This is what I currently have in my option file:

DOMAIN "\\hostname\share$"
exclude \\hostname\share$\...\*
include \\hostname\share$\c\...\*

This has not worked as I can see it is still backing up files from folders a&b instead of only files from folder c.

What I've also noticed is that if the folder under the share (e.g. folder name) has a space in its name, I get the following error:

ANS9989W Management class name\...\* specified on the INCLUDE statement in dsm.opt at line xx does not exist.
 

marclant

ADSM.ORG Moderator
#4
What I've also noticed is that if the folder under the share (e.g. folder name) has a space in its name, I get the following error:

ANS9989W Management class name\...\* specified on the INCLUDE statement in dsm.opt at line xx does not exist.
Use double quotes. Example:
Code:
DOMAIN "\\hostname\share$"
exclude "\\hostname\share$\...\*"
include "\\hostname\share$\c\...\*"
Also keep in mind that the directory structure under \\hostname\share$\a and \\hostname\share$\b will be backed up, but the files should not. Unless there's an overriding include.

Check the complete include/exclude list by using: 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: 7 23.3%
  • Keep using TSM for Spectrum Protect.

    Votes: 16 53.3%
  • Let's be formal and just say Spectrum Protect

    Votes: 4 13.3%
  • Other (please comement)

    Votes: 3 10.0%

Forum statistics

Threads
30,888
Messages
131,415
Members
21,194
Latest member
jamesmacd40