1. 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.
  2. 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 only these dir and subdir

Discussion in 'Backup / Archive Discussion' started by joxers64, Feb 9, 2011.

  1. joxers64

    joxers64 ADSM.ORG Member

    Joined:
    Feb 3, 2010
    Messages:
    12
    Likes Received:
    0
    HI There,

    I have checked the previous posts on this and not really found an answer.

    I would like to only backup 3 directories on my server:
    DOMAIN All-Local -SYSTEMSTATE

    *exclude everything
    exclude *

    *Include only these directories and sub directories
    INCLUDE "C:\appfilder\*"
    INCLUDE "C:\appfolder\...\*"
    INCLUDE "C:\InetPub\*"
    INCLUDE "C:\appfolder\...\*"
    INCLUDE "D:\Backup\*"
    INCLUDE "D:\Backup\...\*"

    When i launch the client and check the incl via q incl it all looks fine:

    [​IMG][​IMG]
    Include FS *\*\* dsm_7yr.opt
    Include All D:\Backup\...\* dsm_7yr.opt
    Include All D:\Backup\* dsm_7yr.opt
    Include All C:\appfolder\...\* dsm_7yr.opt
    Include All C:\InetPub\* dsm_7yr.opt
    Include All C:\appfolder\...\* dsm_7yr.opt
    Include All C:\appfolder\* dsm_7yr.opt
    Exclude All *\...\* dsm_7yr.opt
    No DFS include/exclude statements defined.

    When i run an 'i' it backs up as above but also the entire empty directory structure.

    How can i get it to only check and backup the folders specified?

    thanks

    John
     
  2.  
  3. Raakin

    Raakin ADSM.ORG Senior Member

    Joined:
    Aug 12, 2008
    Messages:
    373
    Likes Received:
    6
  4. whitepup

    whitepup ADSM.ORG Member

    Joined:
    Jan 25, 2007
    Messages:
    36
    Likes Received:
    1
    You will need to use Exclude.dir to exclude the directories not listed in your include statements.
     
  5. joxers64

    joxers64 ADSM.ORG Member

    Joined:
    Feb 3, 2010
    Messages:
    12
    Likes Received:
    0
    Thanks guys,

    am running this
    exclude.dir C:[b-fh-hj-z]*
    exclude.dir D:[a-ac-z]*

    let you know how i go
     

Share This Page