Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
475484d9
Verified
Commit
475484d9
authored
3 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
gitlab: document changes to the backup system (
team#40517
)
parent
798cbd21
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/gitlab.md
+18
-8
18 additions, 8 deletions
howto/gitlab.md
with
18 additions
and
8 deletions
howto/gitlab.md
+
18
−
8
View file @
475484d9
...
...
@@ -796,21 +796,31 @@ hardcoding exporters). We could also use the following tools:
## Backups
There is a backup job (in the
`
gi
t`
user
crontab) that makes sure to
backup the content of
`/var/opt/gitlab/gitlab-rails/etc/`
are
back
ed
up. We use this instead of the backup system provided by the GitLab
Puppet module, because that is not covered by the
`
gitlab-backup`
command. This is implemented with the
`tpo-gitlab-backup`
, a simple
wrapper script which calls
`gitlab-backup`
and performs the
configuration backup and rotation
.
There is a backup job (
`tpo-gitlab-backup`
,
in the
`
roo
t`
user
crontab) that is a simple wrapper script which calls
`gitlab-
back
up`
to dump all components of the GitLab installation (except artifacts!)
in the backup directory (
`/srv/
gitlab-backup`
).
GitLab also creates a backup on upgrade. Those are purged after two
weeks by the wrapper script
.
It is assumed that the existing
[
howto/backup
](
howto/backup
)
system
will pick up those copies and store them for our normal rotation
periods.
Artifacts are not backed up because they are already backed up by
Bacula in the normal job and take a tremendous amount of disk
space. It should also be noted that most of the files provided by
`gitlab-backup`
are
*also*
already backed up by Bacula and are
therefore duplicated on the backup storage server. See
[
issue 40518
][]
to followup on that.
[
issue 40518
]:
https://gitlab.torproject.org/tpo/tpa/team/-/issues/40518
Ideally, this rather exotic backup system would be harmonized with our
existing backup system, but this would require (for example) using our
existing PostgreSQL infrastructure (
[
issue 20
](
https://gitlab.torproject.org/tpo/tpa/gitlab/-/issues/20
)
).
existing PostgreSQL infrastructure (
[
issue 20
](
https://gitlab.torproject.org/tpo/tpa/gitlab/-/issues/20
)
). Other ideas
(including filesystem snapshots) are also in
[
issue 40518
][]
.
## Other documentation
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment