Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed line 72 of standard.rb to include the ssh user in scp
  • Loading branch information
jashmenn committed Oct 16, 2006
1 parent 62fb5af commit bd80dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backup/recipes/standard.rb
Expand Up @@ -69,7 +69,7 @@
# scp the local file to the foreign directory. same name.
c[:servers].each do |server|
host = server =~ /localhost/ ? "" : "#{server}:"
sh "scp #{last_result} #{host}#{c[:backup_path]}/"
sh "scp #{last_result} #{c[:ssh_user]}@#{host}#{c[:backup_path]}/"
end
c[:backup_path] + "/" + File.basename(last_result)
end
Expand Down

0 comments on commit bd80dd4

Please sign in to comment.