summaryrefslogtreecommitdiff
path: root/app/models/backup_job.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/backup_job.rb')
-rw-r--r--app/models/backup_job.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/backup_job.rb b/app/models/backup_job.rb
index 5149553..b0a588f 100644
--- a/app/models/backup_job.rb
+++ b/app/models/backup_job.rb
@@ -6,8 +6,9 @@ class BackupJob < ActiveRecord::Base
private
def start_the_backup
if self.finished_at.nil?
- system "backup perform --trigger gs5 --config_file #{Rails.root.join('config','backup.rb')}"
+ system "backup perform --trigger GS5 --config_file #{Rails.root.join('config','backup.rb')}"
self.finished_at = Time.now
+ self.status = 'done'
self.save
end
end