From d8b56c9593924d4371ed747294a5c50e303ab187 Mon Sep 17 00:00:00 2001 From: "Andreas J. Koenig" Date: Thu, 4 Aug 2011 07:50:08 +0200 Subject: [PATCH] runstatusfile now completely optional, not defaulting to a file in the current directory which prevented a sane behaviour during system startup --- bin/rrr-client | 9 +++++++-- lib/File/Rsync/Mirror/Recent.pm | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/rrr-client b/bin/rrr-client index af5a178..891caa6 100755 --- a/bin/rrr-client +++ b/bin/rrr-client @@ -44,6 +44,11 @@ Username if the rsync source requires it. Password if the rsync source requires it. Can also be set by setting the environment variable RSYNC_PASSWORD. +=item B<--runstatusfile=s> + +Only needed for debugging. Path to the internally used status file. +Argument is passed through to the File::Rsync::Mirror::Recent object. + =item B<--skip-deletes!> Defaults to false. If true, skips all delete events in the index files @@ -105,8 +110,8 @@ my $rrr = File::Rsync::Mirror::Recent->new ($Opt{tmpdir} ? ('temp-dir' => $Opt{tmpdir}) : ()), }, verbose => $Opt{verbose}, - ($Opt{verboselog} ? (verboselog => $Opt{verboselog}) : ()), - _runstatusfile => "recent-rmirror-state.yml", + ($Opt{verboselog} ? (verboselog => $Opt{verboselog}) : ()), + ($Opt{runstatusfile} ? (runstatusfile => $Opt{runstatusfile} : ()), # _logfilefordone => "recent-rmirror-donelog.log", ); diff --git a/lib/File/Rsync/Mirror/Recent.pm b/lib/File/Rsync/Mirror/Recent.pm index 3c9d688..8dffba3 100644 --- a/lib/File/Rsync/Mirror/Recent.pm +++ b/lib/File/Rsync/Mirror/Recent.pm @@ -28,7 +28,7 @@ use Storable; use Time::HiRes qw(); use YAML::Syck; -use version; our $VERSION = qv('0.2.1'); +use version; our $VERSION = qv('0.3.0'); =head1 SYNOPSIS -- 2.11.4.GIT