summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-05 19:48:56 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-05 19:48:56 +0300
commit10902c844fe834399e9b909b75ab3ea502c64a89 (patch)
treeb616d05c45373ecfabf08a96229c155c06ac2cfe /lib/backup
parentcd6280f4fe712da9b65a8c62950b71fe93705147 (diff)
downloadgitlab-ce-10902c844fe834399e9b909b75ab3ea502c64a89.tar.gz
move old repositories dir to one with timestamp
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb
index c1d089642b3..4c72e8e4a6e 100644
--- a/lib/backup/repository.rb
+++ b/lib/backup/repository.rb
@@ -29,7 +29,7 @@ module Backup
def restore
if File.exists?(repos_path)
# Move repos dir to 'repositories.old' dir
- bk_repos_path = File.join(repos_path, '..', 'repositories.old')
+ bk_repos_path = File.join(repos_path, '..', 'repositories.old.' + Time.now.to_i.to_s)
FileUtils.mv(repos_path, bk_repos_path)
end