[tor-bugs] #34420 [Internal Services/Tor Sysadmin Team]: enable Gitlab backups (was: Gitlab backup strategy)

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jun 10 15:51:46 UTC 2020


#34420: enable Gitlab backups
-------------------------------------------------+-------------------------
 Reporter:  hiro                                 |          Owner:  hiro
     Type:  task                                 |         Status:
                                                 |  assigned
 Priority:  Medium                               |      Milestone:
Component:  Internal Services/Tor Sysadmin Team  |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:                                       |  Actual Points:
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------
Changes (by anarcat):

 * type:  defect => task
 * component:  - Select a component => Internal Services/Tor Sysadmin Team


Comment:

 {{{
 +        0 2 * * * tar -czvf config_backup.tar.gz /etc/gitlab/gitlab-
 secrets.json /etc/gitlab/gitlab.rb ; mv config_backup.tar.gz
 /srv/backups/config_backup$(date -d "today" +"%Y%m%d%H%M").tar.gz
 }}}

 here, i would skip the `mv` and why not backup all of /etc/gitlab? so just
 do:

 {{{
 tar -czvf /srv/backups/config_backup_$(date -d "today"
 +"%Y%m%d%H%M").tar.gz  /etc/gitlab/
 }}}

 I'm surprised it's not /var/opt/gitlab-rails/etc gitlab too...

 otherwise lgtm, assuming that /srv/backups exists...

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/34420#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list