Include and Exclude

illllm

ADSM.ORG Member
Joined
Jan 9, 2018
Messages
153
Reaction score
2
Points
0
Hi All,

I have a domain in the dsm.sys

DOMAIN /MAIN/APP1

Under this I have a list of EXCLUDE.DIR

I need to backup /MAIN/dir1 , /MAIN/dir2

Adding it to INCLUDE did not help.

How do I backup the other two directories that are not part of the DOMAIN ?
 
You need a domain statement for the domain they are in.
Code:
domain /MAIN/APP1
domain /MAIN
exclude /MAIN/.../*
include /MAIN/dir1/.../*
include /MAIN/dir2/.../*
 
so will this work ?

DOMAIN /main/app1
DOMAIN /main
EXCLUDE /main/.../*
INCLUDE /main/config
INCLUDE /main/home
INCLUDE /main/party
 
so will this work ?

DOMAIN /main/app1
DOMAIN /main
EXCLUDE /main/.../*
INCLUDE /main/config
INCLUDE /main/home
INCLUDE /main/party
If you want to backup the directory /main/home, but not the files and subdirectories under it, then yes. If you want the content too, follow my example.
 
ah I didnt pay attention to the rest.....trying that now
 
so the problem is /main/ is 4 PB which is being backed up elsewhere

I need to exclude the 4 PM and backup just 4 directories

domain /MAIN/APP1
domain /MAIN
exclude /MAIN/.../*
include /MAIN/dir1/.../*
include /MAIN/dir2/.../*

the exclude list also has exclude.dir /MAIN

so its not working as planned....
 
so I guess I have to create a new .opt file :(
 
yikes this certainly is a pickle....

the exclude.dir /main/app1 is excluding the 4 PB files

It also has multiple other exclude.dir

how do i tell it to backup /main/dir1 , /main/dir2 and not backup the other 4PB while honoring the other exclude.dir ?
 
tried adding /main/dir1, /main/dir2 and individual domain names but now it says invalid domain
 
tried adding /main/dir1, /main/dir2 and individual domain names but now it says invalid domain
Domain only works for filesysystems.
how do i tell it to backup /main/dir1 , /main/dir2 and not backup the other 4PB while honoring the other exclude.dir ?
You cannot, at least not within the same stanza. Create a new stanza in dsm.sys and use different include/exclude options. If I was you, I'd backup dir1 and dir2 explicitely and not scan /main.

So:
1 - create new stanza in dsm.sys
2 - do the backup like this: dsmc inc "/main/dir1/* /main/dir1/* /main/app1/*" -su=yes
or if it's a schedule, use the object="/main/dir1/* /main/dir1/* /main/app1/*", but you will also need a different nodename in order to use a different stanza with a schedule.
 
Back
Top