1 #!/home/src/perl/repoperls/installed-perls/perl/pVNtS9N/perl-5.8.0@32642/bin/perl
3 $ENV{USER
}="andk"; # fill in your name
4 $ENV{RSYNC_PASSWORD
} = shift or die; # fill in your passwd
7 use File
::Rsync
::Mirror
::Recent
;
9 File
::Rsync
::Mirror
::Recent
->new
11 ignore_link_stat_errors
=> 1,
12 localroot
=> "/home/ftp/pub/PAUSE/$_",
13 remote
=> "pause.perl.org::PAUSE/$_/RECENT.recent",
14 max_files_per_connection
=> 12503,
17 port
=> 8732, # only for PAUSE
22 'omit-dir-times' => 1, # not available before rsync 3.0.3
25 tempdir
=> "/home/ftp/tmp",
28 # verboselog => "/var/log/rmirror-pause.log",
29 runstatusfile
=> "/var/log/rmirror-status-$_.state",
30 )} "authors", "modules";
31 die "directory $_ doesn't exist, giving up" for grep { ! -d
$_->localroot } @rrr;
35 $rrr->rmirror ( "skip-deletes" => 1 );
37 my $sleep = $ttgo - time;
39 # print STDERR "sleeping $sleep ... ";