> > > 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 idea better than my regex. The implementation doing
> matching should however iterate over all path components, so that
> it's not neccessary to do
> 
> -g / -g /home -g /home/username -g /home/username/Desktop -g 
> '/home/username/Desktop/*'
> 
> but to make this suffice:
> 
> -g '/home/username/Desktop/*'
> 
> Chopping up the string is easy enough.

Yeah, agreed.  It's annoying that we have to do this by hand :/.

- z
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to