Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-qa-sandbox-group
qa-test-2019-05-06-03-38-42-40f225278db2df81
add-member-project-38ac0d05ff9a6e41
Commits
da1fd14e
Commit
da1fd14e
authored
Sep 18, 2015
by
Jacob Vosmaer
Browse files
Add some comments in the backup scripts
parent
2781db6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/backup/builds.rb
View file @
da1fd14e
...
...
@@ -13,6 +13,9 @@ module Backup
FileUtils
.
mkdir_p
(
File
.
dirname
(
backup_builds_tarball
))
FileUtils
.
rm_f
(
backup_builds_tarball
)
# Use 'tar -czf -' instead of 'tar -cz' because on some systems the
# default behavior of tar is to talk to a tape device instead of
# stdin/stdout.
system
(
*
%W(tar -C
#{
app_builds_dir
}
-czf - -- .)
,
out:
[
backup_builds_tarball
,
'w'
,
0600
]
...
...
@@ -23,6 +26,9 @@ module Backup
backup_existing_builds_dir
Dir
.
mkdir
(
app_builds_dir
,
0700
)
# Use 'tar -xzf -' instead of 'tar -xz' because on some systems the
# default behavior of tar is to talk to a tape device instead of
# stdin/stdout.
system
(
*
%W(tar -C
#{
app_builds_dir
}
-xzf - -- .)
,
in:
backup_builds_tarball
...
...
lib/backup/database.rb
View file @
da1fd14e
...
...
@@ -2,6 +2,7 @@ require 'yaml'
module
Backup
class
Database
# These are the final CI tables (final prior to integration in GitLab)
TABLES
=
%w{
ci_application_settings ci_builds ci_commits ci_events ci_jobs ci_projects
ci_runner_projects ci_runners ci_services ci_tags ci_taggings ci_trigger_requests
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment