how to exclude *.tar.gz from duplicity backup?

Discussion in 'Server Operation' started by PermaNoob, Oct 9, 2010.

  1. PermaNoob

    PermaNoob Member

    Searched for about an hour, but I can't find example on the net of how to exclude all tar.gz files from my Duplicity backup.

    thanks in advance if you have the answer
     
  2. PermaNoob

    PermaNoob Member

    I ran

    find -name *.tar.gz

    to get a list of all of them, then saved that as a text file and put this in the duplicity command line:

    --exclude-filelist /disk2/backups/targzlist.txt

    which works, but I'm still thinking there must be a way to exclude all of a certain file type such as tar.gz
     
  3. PermaNoob

    PermaNoob Member

    Bumping to see if anyone knows of a new and easier way to do this now.
     
    Last edited: Feb 17, 2012
  4. gbj

    gbj New Member

    Remember to add it before your --include

    --exclude **\*.tar.bz2

    in your case:

    --exclude **\*.tar.gz
     
    Last edited: Mar 17, 2014

Share This Page