diff options
-rw-r--r-- | lib/Youri/Submit/Post/Mirror.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Youri/Submit/Post/Mirror.pm b/lib/Youri/Submit/Post/Mirror.pm index cc98fe1..cfc0bbd 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 $root/$target/ $self->{_destination}/$target/")) { + if (system("/usr/bin/rsync -alH --delete --delete-after $root/$target/ $self->{_destination}/$target/")) { $self->{_error} = "Rsync command failed ($!)"; } |