|
@ -613,6 +613,44 @@ PGHOST=172.19.0.2 PGUSER=postgres pgm ls |
|
|
tail -f /srv/datastore/data/cron/var/log/cron/letsencrypt-renew_script.log -n 200 |
|
|
tail -f /srv/datastore/data/cron/var/log/cron/letsencrypt-renew_script.log -n 200 |
|
|
#+END_SRC |
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
|
*** rsync-backup |
|
|
|
|
|
|
|
|
|
|
|
**** Installation du backup |
|
|
|
|
|
|
|
|
|
|
|
A faire depuis le serveur ayant des services à backupper. |
|
|
|
|
|
|
|
|
|
|
|
Il y a une partie à copier-coller sur le serveur de backup. |
|
|
|
|
|
|
|
|
|
|
|
Ne pas oublier de relancer le serveur de backup pour le prendre en compte. |
|
|
|
|
|
|
|
|
|
|
|
#+begin_src sh |
|
|
|
|
|
DOMAIN=xxx.fr |
|
|
|
|
|
BACKUP_SERVER=core-06.0k.io:10023 |
|
|
|
|
|
|
|
|
|
|
|
ssh-keygen -t rsa -N "" -f /root/.ssh/rsync_rsa -C "rsync@$DOMAIN" |
|
|
|
|
|
cat <<EOF >> /opt/apps/myc-deploy/compose.yml |
|
|
|
|
|
|
|
|
|
|
|
rsync-backup: |
|
|
|
|
|
options: |
|
|
|
|
|
ident: $DOMAIN |
|
|
|
|
|
target: $BACKUP_SERVER |
|
|
|
|
|
private-key: | |
|
|
|
|
|
$(cat /root/.ssh/rsync_rsa | sed -r 's/^/ /g') |
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
echo "copier-coller ceci dans le '/etc/compose/compose.yml' de ${BACKUP_SERVER%:*}:" |
|
|
|
|
|
echo |
|
|
|
|
|
cat <<EOF |
|
|
|
|
|
$DOMAIN: "$( |
|
|
|
|
|
cat /root/.ssh/rsync_rsa.pub | |
|
|
|
|
|
fold -w 67 | sed -r 's/$/\\/g;2,$ s/^/ /g;$,$ s/\\$//g')" |
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
compose build mongo ## force the build of the new mongo image with regular dumps |
|
|
|
|
|
#+end_src |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Interventions avancées |
|
|
* Interventions avancées |
|
|
|
|
|
|
|
|
Description des process avancés d'intervention sur une installation existante. |
|
|
Description des process avancés d'intervention sur une installation existante. |
|
|