Results 1 to 4 of 4

Thread: Problem excluding subdirectories after including their parent in Duplicity

  1. #1
    Join Date
    Aug 2013
    Beans
    4

    Question Problem excluding subdirectories after including their parent in Duplicity

    I am backing up with something very similar to the below:

    Code:
    /usr/bin/duplicity (irrelevant options) \
      --include /home/me \
      --exclude /home/me/example \
      ssh://remote/backupjar
    The problem I have is that the excluded example subdirectory is being included in my backups. Even after explicitly giving an option to exclude it. The output shows:
    A: /home/me
    A: /home/me/otherstuff
    A: /home/me/example
    A: /hmoe/me/example/undesired-file

  2. #2
    Join Date
    Mar 2010
    Location
    Metro-ATL; PM free zone.
    Beans
    Hidden!
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Problem excluding subdirectories after including their parent in Duplicity

    I don't use duplic* ... but have you tried swapping the include/exclude order in the script?

  3. #3
    Join Date
    Aug 2013
    Beans
    4

    Re: Problem excluding subdirectories after including their parent in Duplicity

    Yes, I have tried rearranging the options. No effect.

  4. #4
    Join Date
    Mar 2010
    Location
    Metro-ATL; PM free zone.
    Beans
    Hidden!
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Problem excluding subdirectories after including their parent in Duplicity

    Quote Originally Posted by aeyoun View Post
    Yes, I have tried rearranging the options. No effect.
    Does the man page have any precedent hints?

    I looked at an online version ... seems you probably don't want the --include at all, just --exclude. Then the command just lists the directories to be included without the "--include" specifications. The man page has exactly this example in the ... "Examples" section.

    Something like:
    Code:
    /usr/bin/duplicity (irrelevant options) \
      --exclude /home/me/example \
      /home/me \
      ssh://remote/backupjar

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •