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
| @@ -71,6 +71,7 @@ | @@ -71,6 +71,7 @@ | ||
| 71 | \input installDoc/redmine-sei | 71 | \input installDoc/redmine-sei |
| 72 | \input installDoc/gitlab-sei | 72 | \input installDoc/gitlab-sei |
| 73 | \input installDoc/configurar_projeto-sei.tex | 73 | \input installDoc/configurar_projeto-sei.tex |
| 74 | +\input installDoc/backup_restauracao-sei.tex | ||
| 74 | 75 | ||
| 75 | 76 | ||
| 76 | \end{document} | 77 | \end{document} |
Makefile
| @@ -6,7 +6,7 @@ PDFLATEX = pdflatex | @@ -6,7 +6,7 @@ PDFLATEX = pdflatex | ||
| 6 | BIBTEX = bibtex | 6 | BIBTEX = bibtex |
| 7 | MAKEINDEX = makeindex | 7 | MAKEINDEX = makeindex |
| 8 | 8 | ||
| 9 | -SOURCES = $(BASE_NAME).tex | 9 | +SOURCES = $(BASE_NAME).tex installDoc/*.tex |
| 10 | 10 | ||
| 11 | all: | 11 | all: |
| 12 | @make $(BASE_NAME).pdf | 12 | @make $(BASE_NAME).pdf |
| @@ -0,0 +1,73 @@ | @@ -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 | +}}} |