Commit 8114b172477f2e44f880ecedf8173e34802cc95a
1 parent
e5880ac9
Exists in
master
and in
1 other branch
Backup and restore gitlab instructions
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
3 changed files
with
75 additions
and
1 deletions
Show diff stats
LabSEI.tex
Makefile
| ... | ... | @@ -0,0 +1,73 @@ |
| 1 | +\section{Backup e Restauração} | |
| 2 | +\label{backup_restauracao} | |
| 3 | + | |
| 4 | +\subsection{Gitlab} | |
| 5 | +\subsubsection{Backup} | |
| 6 | + | |
| 7 | +Para criar um backup do sistema do Gitlab, execute o comando: | |
| 8 | + | |
| 9 | +\fbox{\parbox{\textwidth}{ | |
| 10 | +\texttt{ | |
| 11 | +sudo gitlab-rake gitlab:backup:create | |
| 12 | +}}} | |
| 13 | + | |
| 14 | +O backup será criado no diretório "/var/opt/gitlab/backups/", com o nome | |
| 15 | + | |
| 16 | +<TIMESTAMP>\_gitlab\_backup.tar | |
| 17 | + | |
| 18 | +Por exemplo: 1410209270\_gitlab\_backup.tar | |
| 19 | + | |
| 20 | +\subsubsection{Restauração} | |
| 21 | + | |
| 22 | +Para restaurar um backup previamente criado, com o mesmo estando presente no diretório | |
| 23 | + | |
| 24 | +"/var/opt/gitlab/backups/" e no formato informado na seção anterior, execute o | |
| 25 | + | |
| 26 | +comando: | |
| 27 | + | |
| 28 | +\fbox{\parbox{\textwidth}{ | |
| 29 | +\texttt{ | |
| 30 | +sudo gitlab-rake gitlab:backup:restore BACKUP=<TIMESTAMP\_of\_backup> | |
| 31 | +}}} | |
| 32 | + | |
| 33 | +Caso só haja um arquivo de backup no diretório de backups, o parâmetro | |
| 34 | + | |
| 35 | +BACKUP=<TIMESTAMP\_of\_backup> | |
| 36 | + | |
| 37 | +torna-se opcional. | |
| 38 | + | |
| 39 | +\subsection{Redmine} | |
| 40 | +\subsubsection{Backup} | |
| 41 | + | |
| 42 | +\fbox{\parbox{\textwidth}{ | |
| 43 | +\texttt{ | |
| 44 | +sudo chown \$USER:\$GROUP -R /opt | |
| 45 | +\\ | |
| 46 | +cd /opt | |
| 47 | +}}} | |
| 48 | +\subsubsection{Restauração} | |
| 49 | + | |
| 50 | +\fbox{\parbox{\textwidth}{ | |
| 51 | +\texttt{ | |
| 52 | +sudo chown \$USER:\$GROUP -R /opt | |
| 53 | +\\ | |
| 54 | +cd /opt | |
| 55 | +}}} | |
| 56 | + | |
| 57 | +\subsection{LDap} | |
| 58 | +\subsubsection{Backup} | |
| 59 | + | |
| 60 | +\fbox{\parbox{\textwidth}{ | |
| 61 | +\texttt{ | |
| 62 | +sudo chown \$USER:\$GROUP -R /opt | |
| 63 | +\\ | |
| 64 | +cd /opt | |
| 65 | +}}} | |
| 66 | +\subsubsection{Restauração} | |
| 67 | + | |
| 68 | +\fbox{\parbox{\textwidth}{ | |
| 69 | +\texttt{ | |
| 70 | +sudo chown \$USER:\$GROUP -R /opt | |
| 71 | +\\ | |
| 72 | +cd /opt | |
| 73 | +}}} | ... | ... |