Commit 3759d576 authored by Maxime BOSSARD's avatar Maxime BOSSARD

Replace nginx backup by etckeeper git repo backup.

parent 19d96cd1
......@@ -48,8 +48,11 @@ rsync -Aax --stats --human-readable "$NUAGE_APP_DIR/" "$BACKUP_DIR/app/" || erro
echo "== Copying prod log files... =="
rsync -Aax --stats --human-readable --include="/nuage-prod.log*" --exclude="*" "$NUAGE_LOGS_DIR/" "$BACKUP_DIR/logs/" || errorCount=$(( errorCount + 1 ))
echo "== Copying nginx config files... =="
rsync -Aax --stats --human-readable "/etc/nginx/" "$BACKUP_DIR/etc_nginx/" || errorCount=$(( errorCount + 1 ))
#echo "== Copying nginx config files... =="
#rsync -Aax --stats --human-readable "/etc/nginx/" "$BACKUP_DIR/etc_nginx/" || errorCount=$(( errorCount + 1 ))
echo "== Copying etckeeper backup git repo... =="
rsync -Aax --stats --human-readable /backups/etckeeper-git "$BACKUP_DIR/etckeeper-git/" || errorCount=$(( errorCount + 1 ))
echo "[ENDING] Backup extra finished on `date`"
......
......@@ -40,6 +40,8 @@ echo "T:: Check presence of app data"
echo "T:: Check presence of logs data"
( tar -tf "$LATEST_LINK" "$ARCHIVE_NAME/logs" || koMsg ) | head > /dev/null
echo "T:: Check presence of nginx data"
( tar -tf "$LATEST_LINK" "$ARCHIVE_NAME/etc_nginx" || koMsg ) | head > /dev/null
#echo "T:: Check presence of nginx data"
#( tar -tf "$LATEST_LINK" "$ARCHIVE_NAME/etc_nginx" || koMsg ) | head > /dev/null
echo "T:: Check presence of etckeeper data"
( tar -tf "$LATEST_LINK" "$ARCHIVE_NAME/etckeeper-git" || koMsg ) | head > /dev/null
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment