summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2017-04-25 10:01:59 +0200
committerAchilleas Pipinellis <axilleas@axilleas.me>2017-04-25 11:36:52 +0200
commit43f73107ca2011ac8ed3af5a79c378c81820eeb6 (patch)
tree8fe0c504011bfe8b116d25dbcc2e82c3d6d3ee79 /lib/backup
parenta9a1f7a61a71399a95b953272e1ff66d60297571 (diff)
downloadgitlab-ce-43f73107ca2011ac8ed3af5a79c378c81820eeb6.tar.gz
Expose GitLab version in backup file
Instead of doing hacks like http://stackoverflow.com/a/26082612/974710
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 7b4476fa4db..0562961c66b 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(Gitlab.config.backup.path) do
File.open("#{Gitlab.config.backup.path}/backup_information.yml",