6 testing-rmirror-k75-k81 -
14 We like to call it as root and not with sudo because of strange
15 permission problems on the .perldb file.
17 /usr/local/perl-5.10-uld/bin/perl -I /home/k/sources/rersyncrecent/lib -d /home/k/sources/CPAN/andk-cpan-tools/bin/testing-rmirror-k75-k81.pl
24 $ENV{RSYNC_PASSWORD
} = "VteTseXA"; # password published knowingly
27 use File
::Rsync
::Mirror
::Recent
;
29 my $statusfile = "/root/rmirror-status-$_.state";
31 if (0 && -f
$statusfile) { # 0 && because it's not yet tested 2009-04-25 akoenig
32 $r = File
::Rsync
::Mirror
::Recent
->thaw ( $statusfile );
34 $r = File
::Rsync
::Mirror
::Recent
->new
36 ignore_link_stat_errors
=> 1,
37 localroot
=> "/home/ftp/pub/PAUSE/$_",
38 max_files_per_connection
=> 22501,
39 remote
=> "192.168.2.101::PAUSE/$_/RECENT.recent",
40 tempdir
=> "/home/ftp/tmp",
50 'omit-dir-times' => 1, # not available before rsync 3.0.3
53 # verboselog => "/var/log/rmirror-k75-k81.log",
54 _runstatusfile
=> $statusfile,
58 } "modules", "authors";
59 die "directory $_ doesn't exist, giving up" for grep { ! -d
$_->localroot } @rrr;
66 my $sleep = $ttgo - time;
68 print STDERR
"sleeping $sleep ... ";
71 printf STDERR
"No time to sleep: ttgo[%s] time[%s]\n", $ttgo, time;