SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Expansion of Double Asterisk
Author Message
Post Expansion of Double Asterisk 
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

Post Expansion of Double Asterisk 
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 <holdenhao < at > gmail.com> 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


Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB