lib/fulmar/infrastructure/service/transfer/rsync.rb in fulmar-1.7.1 vs lib/fulmar/infrastructure/service/transfer/rsync.rb in fulmar-1.7.2

- old
+ new

@@ -53,10 +53,10 @@ # Assembles all rsync command line parameters from the configuration options def rsync_command_options options = ['-rl'] options << "--exclude='#{@config[:rsync][:exclude]}'" if @config[:rsync][:exclude] options << "--exclude-from='#{@config[:rsync][:exclude_file]}'" if @config[:rsync][:exclude_file] - options << "--chown='#{@config[:rsync][:chown]}'" if @config[:rsync][:chown] + options << "--owner --group --chown='#{@config[:rsync][:chown]}'" if @config[:rsync][:chown] options << "--chmod='#{@config[:rsync][:chmod]}'" if @config[:rsync][:chmod] options << '--delete' if @config[:rsync][:delete] options end end