parent
8987257498
commit
c6ff77d4b8
|
@ -11,6 +11,7 @@ v 8.11.0 (unreleased)
|
||||||
|
|
||||||
v 8.10.2 (unreleased)
|
v 8.10.2 (unreleased)
|
||||||
- Use project ID in repository cache to prevent stale data from persisting across projects
|
- Use project ID in repository cache to prevent stale data from persisting across projects
|
||||||
|
- Fix backup restore
|
||||||
|
|
||||||
v 8.10.1 (unreleased)
|
v 8.10.1 (unreleased)
|
||||||
- Fix Error 500 when creating Wiki pages with hyphens or spaces
|
- Fix Error 500 when creating Wiki pages with hyphens or spaces
|
||||||
|
|
|
@ -54,10 +54,10 @@ module Backup
|
||||||
# Move repos dir to 'repositories.old' dir
|
# Move repos dir to 'repositories.old' dir
|
||||||
bk_repos_path = File.join(path, '..', 'repositories.old.' + Time.now.to_i.to_s)
|
bk_repos_path = File.join(path, '..', 'repositories.old.' + Time.now.to_i.to_s)
|
||||||
FileUtils.mv(path, bk_repos_path)
|
FileUtils.mv(path, bk_repos_path)
|
||||||
|
# This is expected from gitlab:check
|
||||||
|
FileUtils.mkdir_p(path, mode: 2770)
|
||||||
end
|
end
|
||||||
|
|
||||||
FileUtils.mkdir_p(repos_path)
|
|
||||||
|
|
||||||
Project.find_each(batch_size: 1000) do |project|
|
Project.find_each(batch_size: 1000) do |project|
|
||||||
$progress.print " * #{project.path_with_namespace} ... "
|
$progress.print " * #{project.path_with_namespace} ... "
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue