summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-04-26 18:22:33 +0000
committerRémy Coutable <remy@rymai.me>2017-04-26 18:22:33 +0000
commitb5526a2d13386fa0e73750d05db4c40366927cba (patch)
treed15fe2ece82e4ada823f50fbe6ee696db7278f2e /lib/backup
parent8e91aa9ba2261c93d5d40ee785945e077494fa82 (diff)
parent3bce12957037173011aec132acd1913fc702d48a (diff)
downloadgitlab-ce-b5526a2d13386fa0e73750d05db4c40366927cba.tar.gz
Merge branch 'gl-version-backup-file' into 'master'
Add GitLab version to backup file name See merge request !10901
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb
index 8d64c82272a..330cd963626 100644
--- a/lib/backup/manager.rb
+++ b/lib/backup/manager.rb
@@ -15,7 +15,7 @@ module Backup
s[:gitlab_version] = Gitlab::VERSION
s[:tar_version] = tar_version
s[:skipped] = ENV["SKIP"]
- tar_file = "#{s[:backup_created_at].strftime('%s_%Y_%m_%d')}#{FILE_NAME_SUFFIX}"
+ tar_file = "#{s[:backup_created_at].strftime('%s_%Y_%m_%d_')}#{s[:gitlab_version]}#{FILE_NAME_SUFFIX}"
Dir.chdir(backup_path) do
File.open("#{backup_path}/backup_information.yml", "w+") do |file|