[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] Re: Expansion of Double Asterisk
From: |
Holden Hao |
Subject: |
[rdiff-backup-users] Re: Expansion of Double Asterisk |
Date: |
Fri, 29 Jul 2005 09:01:52 +0800 |
I have not received any replies to my question. I would appreciate if
somebody drops me a note. A short reply pointing me to a mistake
would at least point me to a direction.
Thanks.
Holden
On 7/26/05, Holden Hao <address@hidden> wrote:
> Form the documentation a double asterisk "**" is supposed to expand to
> its full path such that if you use an expression such as "**txt" means
> all files ending in "txt" will be backed up. However, I have observed
> that if you use the double asterisk twice in an include directive only
> the first is carried out correctly.
>
> "rdiff-backup --include '**txt' --include '**xls' --exclude path path
> backuppath" only backs up txt files recursively. When using :
>
> "rdiff-backup --include-globbing-filelist list.txt path backuppath" where
>
> list.txt is:
> **xls
> **doc
> -path
>
> produces the same effect.
>
> What I am trying to do is to selectively backup only files that are of
> a particular extension like .doc, .xls, .jpg.
>
> I have tried using "--include-regexp" but I have not made it work
> recusively. Only the files on the parent directory gets backed up. I
> used something like:
>
> "rdiff-backup --include-regexp 'txt$' --include-regexp 'doc$'
> --exclude '**' path backuppath"
>
> Thanks for the replies.
>
>
> Holden
>