Rsync

Proxy Setting

export RSYNC_PROXY=127.0.0.1:1087

Sync from remote

rsync --port 9873 --ignore-existing -raz --progress music@www.bigyong.com::music music
rsync --port 9873 --ignore-existing -raz --progress rsync://aviar@192.168.2.249/nas  volume1_homes
#!/usr/bin/perl -w

use strict;
use warnings;

my $password = '2222222222';
$ENV{'RSYNC_PASSWORD'} = $password;

my $start_time = `date`;
chomp($start_time);
print $start_time . "\n";

system("rsync  --port 9873 --delete -av /var/backup/ backup@vpn.bigyong.com::bigyong");

my $end_time = `date`;
chomp($end_time);
print $end_time . "\n";
powered by GitbookFile Modify: 2023-07-13 10:06:36

results matching ""

    No results matching ""