From bd80dd4f5afc4ec8212cfa1ef3909da50a740703 Mon Sep 17 00:00:00 2001 From: Nate Murray Date: Mon, 16 Oct 2006 15:43:42 +0000 Subject: [PATCH] fixed line 72 of standard.rb to include the ssh user in scp --- lib/backup/recipes/standard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backup/recipes/standard.rb b/lib/backup/recipes/standard.rb index 219ca7b..042d2f9 100644 --- a/lib/backup/recipes/standard.rb +++ b/lib/backup/recipes/standard.rb @@ -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