duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Excluding subdirectories


From: edgar . soldin
Subject: Re: [Duplicity-talk] Excluding subdirectories
Date: Fri, 13 Sep 2013 08:22:14 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

On 13.09.2013 03:56, address@hidden wrote:
> I'm trying to back up the files in my home directory along with some, but
> not all, of the subdirectories. My home directory is something like this:
> 
> ...
> /home/james/Documents/
> /home/james/notes/
> /home/james/.gnupg/
> /home/james/.matplotlib/
> ...
> /home/james/file1
> /home/james/file2
> ...
> 
> The best I've come up with is the following command:
> 
> duplicity \
> --include /home/james/notes \
> --exclude '/home/james/*/**/' \
> --include /home/james --exclude '**' / <url>
> 
> or equivalently:
> 
> duplicity --include-globbing-filelist ./list / <url>
> 
> where list is:
> 
> + /home/james/notes
> - /home/james/*/**
> + /home/james/
> - **
> 
> In either case I get all of the files in /home/james and all of
> /home/james/notes as I want, but I also get empty directories for
> Documents, .gnupg, etc. I feel like I understand the include/exclude
> system fairly well, but I can't figure out a way to exclude directories
> since I have no way of distinguishing them from regular files. Am I missing
> something?
> 

a little bit more concise

+ /home/james/*
- **

should do the same.

but anyway. the exclude mechanism doesn't differ between folders and files, 
hence you will end up with all entreis of the folder incl. the subfolders ...

..ede/duply.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]