summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-26 21:34:33 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-26 21:34:33 +0100
commit177a2c037468e222191b6668eb8e64a94833b18c (patch)
tree8d94fcb1aac3f02d25ea05018f75033ea0a660d0 /app
parent9dd3fa175bb7fd18f81f8e32468a842babe63e7f (diff)
correct path for tar
Diffstat (limited to 'app')
-rw-r--r--app/models/backup_job.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/backup_job.rb b/app/models/backup_job.rb
index 91345e5..a04f6c0 100644
--- a/app/models/backup_job.rb
+++ b/app/models/backup_job.rb
@@ -32,7 +32,7 @@ class BackupJob < ActiveRecord::Base
if tmp_backup_directory.blank?
self.state = 'failed'
else
- system "cd #{backup_directory} && sudo /usr/bin/tar czf #{backup_name_prefix}#{File.basename(tmp_backup_directory)}.tar.gz #{File.basename(tmp_backup_directory)}"
+ system "cd #{backup_directory} && sudo /bin/tar czf #{backup_name_prefix}#{File.basename(tmp_backup_directory)}.tar.gz #{File.basename(tmp_backup_directory)}"
require 'fileutils'
FileUtils.rm_rf tmp_backup_directory
file = File::Stat.new("#{backup_directory}/#{backup_name_prefix}#{File.basename(tmp_backup_directory)}.tar.gz")