Commit 9d1f11fecc3ccf142547013873527e160d44c0f3
1 parent
221619e5
Exists in
master
and in
1 other branch
Continuing documentation
Showing
2 changed files
with
14 additions
and
32 deletions
Show diff stats
installDoc/backup_restauracao-sei.tex
| ... | ... | @@ -37,22 +37,24 @@ torna-se opcional. |
| 37 | 37 | |
| 38 | 38 | Durante a restauração será pedido para sobrescrever o arquivo authorized\_kyes, digite 'yes' para confirmar ou 'no' para não sobrescrever e então click no 'Enter'. |
| 39 | 39 | |
| 40 | - | |
| 41 | - | |
| 42 | - | |
| 43 | - | |
| 44 | - | |
| 45 | - | |
| 46 | - | |
| 47 | -\subsection{Redmine} | |
| 40 | +\subsection{Redmine + Ldap} | |
| 48 | 41 | \subsubsection{Backup} |
| 49 | 42 | |
| 50 | 43 | \fbox{\parbox{\textwidth}{ |
| 51 | 44 | \texttt{ |
| 52 | -sudo chown \$USER:\$GROUP -R /opt | |
| 45 | + | |
| 46 | +Para realizar o backup é necessario fazer: | |
| 47 | + | |
| 53 | 48 | \\ |
| 54 | -cd /opt | |
| 49 | +wget <endereço do arquivo backup\_restore.sh> | |
| 50 | +\\ | |
| 51 | +sudo ./backup\_restore.sh backup | |
| 52 | +\\ | |
| 53 | +Os arquivos de backup serão armazenados no diretorio: | |
| 54 | +"/var/backup/colab-sei" | |
| 55 | + | |
| 55 | 56 | }}} |
| 57 | + | |
| 56 | 58 | \subsubsection{Restauração} |
| 57 | 59 | |
| 58 | 60 | \fbox{\parbox{\textwidth}{ |
| ... | ... | @@ -61,24 +63,3 @@ sudo chown \$USER:\$GROUP -R /opt |
| 61 | 63 | \\ |
| 62 | 64 | cd /opt |
| 63 | 65 | }}} |
| 64 | - | |
| 65 | -\subsection{LDap} | |
| 66 | -\subsubsection{Backup} | |
| 67 | - | |
| 68 | -\fbox{\parbox{\textwidth}{ | |
| 69 | -\texttt{ | |
| 70 | - | |
| 71 | - | |
| 72 | - | |
| 73 | - | |
| 74 | -}}} | |
| 75 | -\subsubsection{Restauração} | |
| 76 | - | |
| 77 | -\fbox{\parbox{\textwidth}{ | |
| 78 | -\texttt{ | |
| 79 | - | |
| 80 | - | |
| 81 | - | |
| 82 | - | |
| 83 | - | |
| 84 | -}}} | ... | ... |
script/backup.txt
| ... | ... | @@ -10,7 +10,8 @@ backup: |
| 10 | 10 | restaurar: |
| 11 | 11 | remover usuários antigos : |
| 12 | 12 | sudo service slapd stop |
| 13 | - sudo rm -rf /var/lib/ldap/!(DB_CONFIG) | |
| 13 | + sudo rm /var/lib/ldap/alock /var/lib/ldap/log* /var/lib/ldap/*db* -f | |
| 14 | +# sudo rm -rf /var/lib/ldap/!(DB_CONFIG) | |
| 14 | 15 | sudo service slapd start |
| 15 | 16 | sudo service slapd stop |
| 16 | 17 | ... | ... |