From 2b9ad2b11a1dcc487c4de1ad3a19b2e14f0c2788 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 7 Feb 2012 21:30:32 +0000 Subject: Use --delay-updates to make things more atomic --- lib/Youri/Submit/Post/Mirror.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Youri/Submit/Post/Mirror.pm') diff --git a/lib/Youri/Submit/Post/Mirror.pm b/lib/Youri/Submit/Post/Mirror.pm index cfc0bbd..31f7066 100644 --- a/lib/Youri/Submit/Post/Mirror.pm +++ b/lib/Youri/Submit/Post/Mirror.pm @@ -36,7 +36,7 @@ sub run { croak "Missing destination" unless $self->{'_destination'}; - if (system("/usr/bin/rsync -alH --delete --delete-after $root/$target/ $self->{_destination}/$target/")) { + if (system("/usr/bin/rsync -alH --delete --delete-delay --delay-updates $root/$target/ $self->{_destination}/$target/")) { $self->{_error} = "Rsync command failed ($!)"; } -- cgit v1.2.1