[tor-bugs] #34420 [Internal Services/Tor Sysadmin Team]: enable Gitlab backups

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jun 10 16:29:55 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:
-------------------------------------------------+-------------------------

Comment (by hiro):

 Replying to [comment:1 anarcat]:
 > {{{
 > +        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...

 Yes, that's correct. it should be /var/opt/gitlab/etc/gitlab.

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


More information about the tor-bugs mailing list