summaryrefslogtreecommitdiff
path: root/cmds-filesystem.c
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2011-11-25 01:03:58 +0100
committerDavid Sterba <dsterba@suse.cz>2013-08-09 14:32:29 +0200
commite35450fa53139572afdd759619610cc7f5277626 (patch)
treec85605727dd8fc2c5ead298d1fbff1489a401da6 /cmds-filesystem.c
parent3d86ac20b74a736c4b7e0881dac5ff4d3dbbcd11 (diff)
restore: Add regex matching of paths and files to be restored
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.: restore -m '^/(|home(|/username(|/Desktop(|/.*))))$' /dev/sdb2 /output This is needed in order to match each directory along the way to the Desktop directory, as well as all contents below the Desktop directory. Signed-off-by: Peter Stuge <peter@stuge.se> Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-filesystem.c')
0 files changed, 0 insertions, 0 deletions