minor update

This commit is contained in:
Roger Pàmies Fabra 2022-09-29 12:22:35 +02:00
parent 0953ca28c9
commit 8d138ef73a
2 changed files with 12 additions and 12 deletions

View File

@ -13,13 +13,13 @@ REMOTE_PATH="/path/to/remote/store/backups/"
mkdir -p $PATH_LOCAL_BACKUPS
touch $LOG_FILE
sh ~/backup_db.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ~/backup_dir.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ~/backup_inc.sh "$LOG_FILE" "$PATH_ORIGIN_DATA" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ~/backup_clean.sh "$LOG_FILE" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ./backup_db.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ./backup_dir.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ./backup_inc.sh "$LOG_FILE" "$PATH_ORIGIN_DATA" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ./backup_clean.sh "$LOG_FILE" "$REMOTE_SERVER" "$REMOTE_PATH"
# send log to logs public archive
LOG_URL=$(sh ~/logger.sh "$LOG_FILE")
LOG_URL=$(sh ./logger.sh "$LOG_FILE")
# delete local log
rm $LOG_FILE
@ -28,4 +28,4 @@ GOTIFY_MESSAGE="${GOTIFY_MESSAGE} Backup task end: **"`date +"%d/%m/%Y %H:%M:%S"
GOTIFY_MESSAGE="${GOTIFY_MESSAGE} [LogFile]($LOG_URL)"
# send gotify notification
sh ~/gotifypush.sh "NC Inc Backup" "$GOTIFY_MESSAGE" 5 "$GOTIFY_TOKEN" "$LOG_URL"
sh ./gotifypush.sh "NC Inc Backup" "$GOTIFY_MESSAGE" 5 "$GOTIFY_TOKEN" "$LOG_URL"

View File

@ -13,13 +13,13 @@ REMOTE_PATH="/path/to/remote/store/backups/"
mkdir -p $PATH_LOCAL_BACKUPS
touch $LOG_FILE
sh ~/backup_db.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ~/backup_dir.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ~/backup_total.sh "$LOG_FILE" "$PATH_ORIGIN_DATA" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ~/backup_clean.sh "$LOG_FILE" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ./backup_db.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ./backup_dir.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ./backup_total.sh "$LOG_FILE" "$PATH_ORIGIN_DATA" "$REMOTE_SERVER" "$REMOTE_PATH"
sh ./backup_clean.sh "$LOG_FILE" "$REMOTE_SERVER" "$REMOTE_PATH"
# send log to logs public archive
LOG_URL=$(sh ~/logger.sh "$LOG_FILE")
LOG_URL=$(sh ./logger.sh "$LOG_FILE")
# delete local log
rm $LOG_FILE
@ -28,4 +28,4 @@ GOTIFY_MESSAGE="${GOTIFY_MESSAGE} Backup task end: **"`date +"%d/%m/%Y %H:%M:%S"
GOTIFY_MESSAGE="${GOTIFY_MESSAGE} [LogFile]($LOG_URL)"
# send gotify notification
sh ~/gotifypush.sh "NC Total Backup" "$GOTIFY_MESSAGE" 5 "$GOTIFY_TOKEN" "$LOG_URL"
sh ./gotifypush.sh "NC Total Backup" "$GOTIFY_MESSAGE" 5 "$GOTIFY_TOKEN" "$LOG_URL"