mirror of
				https://github.com/vmstan/gravity-sync.git
				synced 2025-11-03 17:17:03 -05: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.
 | 
			
		||||
- `./gravity-sync.sh restore` lets you select a different `gravity.db` and `custom.list` for restoration.
 | 
			
		||||
- One new Star Trek reference.
 | 
			
		||||
- `./gravity-sync.sh restore` now shows recent complete Backup executions.
 | 
			
		||||
 | 
			
		||||
## 2.0
 | 
			
		||||
### The Smart Release
 | 
			
		||||
 | 
			
		||||
@ -749,6 +749,9 @@ function restore_gs {
 | 
			
		||||
## Core Logging
 | 
			
		||||
### Write Logs Out
 | 
			
		||||
function logs_export {
 | 
			
		||||
	
 | 
			
		||||
	if [ "${TASKTYPE}" != "BACKUP" ]
 | 
			
		||||
	then
 | 
			
		||||
	MESSAGE="Saving File Hashes"
 | 
			
		||||
	echo_stat
 | 
			
		||||
		rm -f ${LOG_PATH}/${HISTORY_MD5}
 | 
			
		||||
@ -757,6 +760,7 @@ function logs_export {
 | 
			
		||||
		echo -e ${primaryCLMD5} >> ${LOG_PATH}/${HISTORY_MD5}
 | 
			
		||||
		echo -e ${secondCLMD5} >> ${LOG_PATH}/${HISTORY_MD5}
 | 
			
		||||
			error_validate
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	MESSAGE="Logging Successful ${TASKTYPE}"
 | 
			
		||||
	echo_stat
 | 
			
		||||
@ -778,6 +782,8 @@ function logs_gs {
 | 
			
		||||
		tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep PULL
 | 
			
		||||
	echo -e "Recent Complete ${YELLOW}PUSH${NC} Executions"
 | 
			
		||||
		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"
 | 
			
		||||
		tail -n 7 "${LOG_PATH}/${SYNCING_LOG}" | grep RESTORE
 | 
			
		||||
	echo -e "========================================================"
 | 
			
		||||
@ -1814,6 +1820,7 @@ function task_backup {
 | 
			
		||||
	backup_local_custom
 | 
			
		||||
	backup_cleanup
 | 
			
		||||
	
 | 
			
		||||
	logs_export
 | 
			
		||||
	exit_withchange
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user