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

2020-06-10 Thread Tor Bug Tracker & Wiki
#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: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs


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

2020-06-10 Thread Tor Bug Tracker & Wiki
#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: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs