Re: [PATCH 06/10] restore: Add regex matching of paths and files to be restored

2013-03-13 Thread Zach Brown
> > > restore -m '^/(|home(|/username(|/Desktop(|/.*$' /dev/sdb2 /output > > > > But that example is just bonkers > > I agree ugly, but why bonkers (I understand that to mean silly) ? Well, I guess I mean that it's so ugly that we can't reasonably expect people to use it :). > I like the id

Re: [PATCH 06/10] restore: Add regex matching of paths and files to be restored

2013-03-13 Thread Peter Stuge
Hi Zach, Zach Brown wrote: > > In order to restore only a single folder somewhere in the btrfs > > tree, it is unfortunately neccessary to construct a slightly > > nontrivial regex, e.g.: > > > > restore -m '^/(|home(|/username(|/Desktop(|/.*$' /dev/sdb2 /output > > But that example is just

Re: [PATCH 06/10] restore: Add regex matching of paths and files to be restored

2013-03-13 Thread Zach Brown
> The option -m is used to specify the regex string. -c is used to > specify case insensitive matching. -i was already taken. I guess that's cool if someone really wanted to use the full power of regexes. > In order to restore only a single folder somewhere in the btrfs > tree, it is unfortunatel

[PATCH 06/10] restore: Add regex matching of paths and files to be restored

2013-03-12 Thread Josef Bacik
From: Peter Stuge The option -m is used to specify the regex string. -c is used to specify case insensitive matching. -i was already taken. In order to restore only a single folder somewhere in the btrfs tree, it is unfortunately neccessary to construct a slightly nontrivial regex, e.g.: restor