minor update
This commit is contained in:
parent
0953ca28c9
commit
8d138ef73a
|
@ -13,13 +13,13 @@ REMOTE_PATH="/path/to/remote/store/backups/"
|
||||||
mkdir -p $PATH_LOCAL_BACKUPS
|
mkdir -p $PATH_LOCAL_BACKUPS
|
||||||
touch $LOG_FILE
|
touch $LOG_FILE
|
||||||
|
|
||||||
sh ~/backup_db.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$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_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_inc.sh "$LOG_FILE" "$PATH_ORIGIN_DATA" "$REMOTE_SERVER" "$REMOTE_PATH"
|
||||||
sh ~/backup_clean.sh "$LOG_FILE" "$REMOTE_SERVER" "$REMOTE_PATH"
|
sh ./backup_clean.sh "$LOG_FILE" "$REMOTE_SERVER" "$REMOTE_PATH"
|
||||||
|
|
||||||
# send log to logs public archive
|
# send log to logs public archive
|
||||||
LOG_URL=$(sh ~/logger.sh "$LOG_FILE")
|
LOG_URL=$(sh ./logger.sh "$LOG_FILE")
|
||||||
|
|
||||||
# delete local log
|
# delete local log
|
||||||
rm $LOG_FILE
|
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)"
|
GOTIFY_MESSAGE="${GOTIFY_MESSAGE} [LogFile]($LOG_URL)"
|
||||||
|
|
||||||
# send gotify notification
|
# 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"
|
||||||
|
|
|
@ -13,13 +13,13 @@ REMOTE_PATH="/path/to/remote/store/backups/"
|
||||||
mkdir -p $PATH_LOCAL_BACKUPS
|
mkdir -p $PATH_LOCAL_BACKUPS
|
||||||
touch $LOG_FILE
|
touch $LOG_FILE
|
||||||
|
|
||||||
sh ~/backup_db.sh "$LOG_FILE" "$PATH_LOCAL_BACKUPS" "$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_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_total.sh "$LOG_FILE" "$PATH_ORIGIN_DATA" "$REMOTE_SERVER" "$REMOTE_PATH"
|
||||||
sh ~/backup_clean.sh "$LOG_FILE" "$REMOTE_SERVER" "$REMOTE_PATH"
|
sh ./backup_clean.sh "$LOG_FILE" "$REMOTE_SERVER" "$REMOTE_PATH"
|
||||||
|
|
||||||
# send log to logs public archive
|
# send log to logs public archive
|
||||||
LOG_URL=$(sh ~/logger.sh "$LOG_FILE")
|
LOG_URL=$(sh ./logger.sh "$LOG_FILE")
|
||||||
|
|
||||||
# delete local log
|
# delete local log
|
||||||
rm $LOG_FILE
|
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)"
|
GOTIFY_MESSAGE="${GOTIFY_MESSAGE} [LogFile]($LOG_URL)"
|
||||||
|
|
||||||
# send gotify notification
|
# 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"
|
||||||
|
|
Loading…
Reference in New Issue