Subversion Repositories zfs_utils

Rev

Rev 7 | Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 8
Line 106... Line 106...
106
                           );
106
                           );
107
      # prepend 'zfs send' and the flags. Note that verbose is only for the one which is local
107
      # prepend 'zfs send' and the flags. Note that verbose is only for the one which is local
108
      $sourceCommand = 'zfs send -' . 
108
      $sourceCommand = 'zfs send -' . 
109
                  ( $config->{'recurse'} ? 'R' : '' ) . # recurse if they asked for it
109
                  ( $config->{'recurse'} ? 'R' : '' ) . # recurse if they asked for it
110
                  # turn on verbose if they asked for level 2 AND if source is local
110
                  # turn on verbose if they asked for level 2 AND if source is local
111
                  'Pwn' .
111
                  'Pn' .
112
                  # this is the part that asks for incremental
112
                  # this is the part that asks for incremental
113
                  'I ' .
113
                  'I ' .
114
                  $sourceCommand;
114
                  $sourceCommand;
115
      # wrap the ssh call if this is remote
115
      # wrap the ssh call if this is remote
116
      $sourceCommand = "ssh $config->{source}->{server} '$sourceCommand'" if  $config->{'source'}->{'server'};
116
      $sourceCommand = "ssh $config->{source}->{server} '$sourceCommand'" if  $config->{'source'}->{'server'};
Line 283... Line 283...
283
   'source|s=s',
283
   'source|s=s',
284
   'target|t=s',
284
   'target|t=s',
285
   'filter|f=s',
285
   'filter|f=s',
286
   'dryrun|n',
286
   'dryrun|n',
287
   'recurse|r',
287
   'recurse|r',
288
   'bwlimit=i',
288
   'bwlimit=s',
289
   'verbose|v+',
289
   'verbose|v+',
290
   'help|h'
290
   'help|h'
291
);
291
);
292
 
292
 
293
&help() if $config->{'help'};
293
&help() if $config->{'help'};