aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Youri/Submit/Pre/Rsync.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Youri/Submit/Pre/Rsync.pm b/lib/Youri/Submit/Pre/Rsync.pm
index 036612c..b6b45af 100644
--- a/lib/Youri/Submit/Pre/Rsync.pm
+++ b/lib/Youri/Submit/Pre/Rsync.pm
@@ -35,7 +35,7 @@ sub run {
my ($self, $pre_packages, $repository, $target, $define) = @_;
croak "Not a class method" unless ref $self;
- if (system("rsync --remove-sent-files -avlPHe 'ssh -xc arcfour' $self->{_user}\@$self->{_host}:$self->{_source}/$target/ $self->{_destination}/$target/")) {
+ if (system("rsync --exclude '*.new' --exclude '.*' --remove-sent-files -avlPHe 'ssh -xc arcfour' $self->{_user}\@$self->{_host}:$self->{_source}/$target/ $self->{_destination}/$target/")) {
$self->{_error} = "Rsync command failed ($!)";
return
}