my $logfunc = sub {
my $line = shift;
- logmsg('info', $line);
+ $self->log('info', $line);
};
$self->log('info', "# " . PVE::Tools::cmd2string($cmd));
};
};
-# blowfish is a fast block cipher, much faster then 3des
-my @ssh_opts = ('-c', 'blowfish', '-o', 'BatchMode=yes');
+my @ssh_opts = ('-o', 'BatchMode=yes');
my @ssh_cmd = ('/usr/bin/ssh', @ssh_opts);
my @scp_cmd = ('/usr/bin/scp', @ssh_opts);
-my @rsync_opts = ('-aH', '--delete', '--numeric-ids');
+my @rsync_opts = ('-aHAX', '--delete', '--numeric-ids');
my @rsync_cmd = ('/usr/bin/rsync', @rsync_opts);
sub migrate {
local $ENV{RSYNC_RSH} = join(' ', @ssh_cmd);
local $SIG{INT} = $SIG{TERM} = $SIG{QUIT} = $SIG{HUP} = $SIG{PIPE} = sub {
- logmsg('err', "received interrupt - delayed");
+ $self->log('err', "received interrupt - delayed");
$self->{delayed_interrupt} = 1;
};