[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #34420 [Internal Services/Tor Sysadmin Team]: enable Gitlab backups (was: Gitlab backup strategy)
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs