rsync: add support for delete/partial

This commit is contained in:
Sitaram Chamarty 2010-01-31 21:09:05 +05:30 committed by Sitaram Chamarty
parent 98a4c79dce
commit 18312de77a

View file

@ -216,7 +216,7 @@ sub ext_cmd_rsync
# rsync --server -some.flags . some/path
die "bad rsync command: $cmd"
unless $cmd =~ /^rsync --server( --sender)? -[\w.]+ \. (\S+)$/;
unless $cmd =~ /^rsync --server( --sender)? -[\w.]+(?: --(?:delete|partial))* \. (\S+)$/;
my $perm = "W";
$perm = "R" if $1;
my $path = $2;