Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-05 20:48:56 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-05 20:48:56 +0400
commit10902c844fe834399e9b909b75ab3ea502c64a89 (patch)
treeb616d05c45373ecfabf08a96229c155c06ac2cfe /lib/backup
parentcd6280f4fe712da9b65a8c62950b71fe93705147 (diff)
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