Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:gitlab [2020/04/14 01:55] – [Restore] tmadelinux:gitlab [2020/04/14 01:58] – [Backup] tmade
Line 12: Line 12:
  
 ====Backup==== ====Backup====
 +
 +<code sh backup_git.sh>
 +#!/bin/bash
 +
 +#set container-ID of your gitlab
 +CONTAINERID="e039f53d298a"
 +
 +docker exec -t ${CONTAINERID} gitlab-backup create
 +
 +echo ""
 +echo "backup secrets..."
 +echo ""
 +docker exec -t ${CONTAINERID} cp -a /etc/gitlab/gitlab-secrets.json /var/opt/gitlab/backups/.
 +docker exec -t ${CONTAINERID} cp -a /etc/gitlab/gitlab.rb /var/opt/gitlab/backups/.
 +echo ""
 +echo "backup secrets done"
 +echo ""
 +</code>
  
 ====Restore==== ====Restore====
linux/gitlab.txt · Last modified: 2024/02/05 21:46 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki