Backup/restore wiki repos too
This commit is contained in:
parent
3df5fee4ff
commit
6c206805ae
|
@ -23,6 +23,17 @@ module Backup
|
||||||
else
|
else
|
||||||
puts "[FAILED]".red
|
puts "[FAILED]".red
|
||||||
end
|
end
|
||||||
|
|
||||||
|
wiki = GollumWiki.new(project)
|
||||||
|
|
||||||
|
if File.exists?(path_to_repo(wiki))
|
||||||
|
print " * #{wiki.path_with_namespace} ... "
|
||||||
|
if system("cd #{path_to_repo(wiki)} > /dev/null 2>&1 && git bundle create #{path_to_bundle(wiki)} --all > /dev/null 2>&1")
|
||||||
|
puts " [DONE]".green
|
||||||
|
else
|
||||||
|
puts " [FAILED]".red
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -45,6 +56,17 @@ module Backup
|
||||||
else
|
else
|
||||||
puts "[FAILED]".red
|
puts "[FAILED]".red
|
||||||
end
|
end
|
||||||
|
|
||||||
|
wiki = GollumWiki.new(project)
|
||||||
|
|
||||||
|
if File.exists?(path_to_bundle(wiki))
|
||||||
|
print " * #{wiki.path_with_namespace} ... "
|
||||||
|
if system("git clone --bare #{path_to_bundle(wiki)} #{path_to_repo(wiki)} > /dev/null 2>&1")
|
||||||
|
puts " [DONE]".green
|
||||||
|
else
|
||||||
|
puts " [FAILED]".red
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue