lib/backup/storage/rsync.rb in backup-3.0.27 vs lib/backup/storage/rsync.rb in backup-3.1.0

- old
+ new

@@ -5,11 +5,11 @@ Backup::Dependency.load('net-ssh') module Backup module Storage class RSync < Base - include Backup::CLI::Helpers + include Backup::Utilities::Helpers ## # Server credentials attr_accessor :username, :password @@ -66,17 +66,17 @@ create_remote_path!(remote_path) files_to_transfer_for(@package) do |local_file, remote_file| if local - Logger.message "#{storage_name} started transferring " + + Logger.info "#{storage_name} started transferring " + "'#{ local_file }' to '#{ remote_path }'." run( "#{ utility(:rsync) } '#{ File.join(local_path, local_file) }' " + "'#{ File.join(remote_path, remote_file) }'" ) else - Logger.message "#{storage_name} started transferring " + + Logger.info "#{storage_name} started transferring " + "'#{ local_file }' to '#{ ip }'." run( "#{ utility(:rsync) } #{ rsync_options } #{ rsync_port } " + "#{ rsync_password_file } '#{ File.join(local_path, local_file) }' " + "'#{ username }@#{ ip }:#{ File.join(remote_path, remote_file) }'"