mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Log backup jobs
This commit is contained in:
parent
dd5e7a63b5
commit
e2acade063
@ -32,6 +32,7 @@ Skipping a few digits because what does it really matter?
|
|||||||
- Uses new SQLITE3 backup methodology introduced in 2.1, for all push/pull sync operations.
|
- Uses new SQLITE3 backup methodology introduced in 2.1, for all push/pull sync operations.
|
||||||
- `./gravity-sync.sh restore` lets you select a different `gravity.db` and `custom.list` for restoration.
|
- `./gravity-sync.sh restore` lets you select a different `gravity.db` and `custom.list` for restoration.
|
||||||
- One new Star Trek reference.
|
- One new Star Trek reference.
|
||||||
|
- `./gravity-sync.sh restore` now shows recent complete Backup executions.
|
||||||
|
|
||||||
## 2.0
|
## 2.0
|
||||||
### The Smart Release
|
### The Smart Release
|
||||||
|
@ -749,6 +749,9 @@ function restore_gs {
|
|||||||
## Core Logging
|
## Core Logging
|
||||||
### Write Logs Out
|
### Write Logs Out
|
||||||
function logs_export {
|
function logs_export {
|
||||||
|
|
||||||
|
if [ "${TASKTYPE}" != "BACKUP" ]
|
||||||
|
then
|
||||||
MESSAGE="Saving File Hashes"
|
MESSAGE="Saving File Hashes"
|
||||||
echo_stat
|
echo_stat
|
||||||
rm -f ${LOG_PATH}/${HISTORY_MD5}
|
rm -f ${LOG_PATH}/${HISTORY_MD5}
|
||||||
@ -757,6 +760,7 @@ function logs_export {
|
|||||||
echo -e ${primaryCLMD5} >> ${LOG_PATH}/${HISTORY_MD5}
|
echo -e ${primaryCLMD5} >> ${LOG_PATH}/${HISTORY_MD5}
|
||||||
echo -e ${secondCLMD5} >> ${LOG_PATH}/${HISTORY_MD5}
|
echo -e ${secondCLMD5} >> ${LOG_PATH}/${HISTORY_MD5}
|
||||||
error_validate
|
error_validate
|
||||||
|
fi
|
||||||
|
|
||||||
MESSAGE="Logging Successful ${TASKTYPE}"
|
MESSAGE="Logging Successful ${TASKTYPE}"
|
||||||
echo_stat
|
echo_stat
|
||||||
@ -778,6 +782,8 @@ function logs_gs {
|
|||||||
tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep PULL
|
tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep PULL
|
||||||
echo -e "Recent Complete ${YELLOW}PUSH${NC} Executions"
|
echo -e "Recent Complete ${YELLOW}PUSH${NC} Executions"
|
||||||
tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep PUSH
|
tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep PUSH
|
||||||
|
echo -e "Recent Complete ${YELLOW}BACKUP${NC} Executions"
|
||||||
|
tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep BACKUP
|
||||||
echo -e "Recent Complete ${YELLOW}RESTORE${NC} Executions"
|
echo -e "Recent Complete ${YELLOW}RESTORE${NC} Executions"
|
||||||
tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep RESTORE
|
tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep RESTORE
|
||||||
echo -e "========================================================"
|
echo -e "========================================================"
|
||||||
@ -1814,6 +1820,7 @@ function task_backup {
|
|||||||
backup_local_custom
|
backup_local_custom
|
||||||
backup_cleanup
|
backup_cleanup
|
||||||
|
|
||||||
|
logs_export
|
||||||
exit_withchange
|
exit_withchange
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user