| 
							
							
								 Asif Bacchus | b9a3948372 | Switched NC failure to exit maint mode from error to warning. | 2018-09-06 04:02:21 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 934abe56dd | Setup array variable for exitWarnings | 2018-09-06 04:00:11 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 5a6d287d94 | Changed error and warning messages for consistency (using CAPS) | 2018-09-06 03:41:16 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 4d43b03419 | Updated BorgBackup sections to use new logging variables | 2018-09-06 03:30:43 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | c7b9ec9bcd | Fixed variable type in NC maint section. Tested script. | 2018-09-06 03:20:09 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 9cae90f3d9 | Updated error codes | 2018-09-06 03:14:34 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | af035719f8 | Updated SQL dump section to use new quit function | 2018-09-06 03:14:19 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 664290acd2 | Updated NC maint section to use new quit function | 2018-09-06 03:11:13 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 185860100d | Removed old 503 section | 2018-09-06 03:00:07 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | d6746a2548 | checkExist: Updated warning and error text for consistency. | 2018-09-06 02:59:22 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | a4a4e2fd08 | 503: Updated warning text for consistency. | 2018-09-06 02:58:26 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 1dfaf9addc | Fixed logging in 503 copy section | 2018-09-06 02:48:16 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | db21064b8a | checkExist: simplifed logging. Write directly to logFile instead of tee for warnings and errors. | 2018-09-06 02:39:24 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 213210eef4 | Rewrote 503 section to use checkExist | 2018-09-06 02:37:41 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 2c51deb600 | Cosmetic typo fixed in checkExist. Tested function. | 2018-09-06 02:10:55 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | e255bfb8c8 | checkExist: Added timestamps | 2018-09-06 02:07:21 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 3fc85fb037 | Updated sqlDumpFile name generation section logging params | 2018-09-06 02:01:53 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | f41c3643ce | Reset after testing. Removed old sqlDumpDir check. | 2018-09-06 01:58:31 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 0a1948fed0 | checkExist: Redirected output from mkdir to tee | 2018-09-06 01:56:28 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | c7c3f5771a | checkExist: updated logfile outputs | 2018-09-06 01:44:18 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 9052e2a68e | checkExist: redirect mkdir output to logfile | 2018-09-06 01:36:09 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 1ea15caa87 | Updated sqlDumpDir check to use new checkExist function | 2018-09-06 01:28:09 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 5c142fd329 | Added function to check existance, create/verify and warn or quit. | 2018-09-06 01:16:48 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | dbfd5f64a0 | Quit function added with error code reporting | 2018-09-06 00:37:21 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 9fed8511ee | Added logging verbosity parameter detection and logfile variable setup. | 2018-09-06 00:26:33 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 8bcfad2dac | Correction to self-elevation section that is disabled in production. | 2018-09-06 00:03:40 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 57dd2de557 | Updated comments and instructions to include logging verbosity param. | 2018-09-06 00:02:39 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | ee7a84fb59 | Added sample sqlDetails | 2018-09-05 17:57:02 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | cd6f19c0b1 | added checkpoint interval variable for borg | 2018-09-05 17:48:12 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | d66a8b859b | Added exclude parameter to borg create command | 2018-09-05 17:24:51 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 94399a5b84 | Fixed NC maint mode commands | 2018-09-05 17:22:57 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | d06f446fd5 | Commented in-script elevation, activated explicit root check | 2018-09-05 17:20:38 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | bc6badb8b1 | Added exclude variable | 2018-09-05 17:20:08 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | cd3e69c081 | Fixed notification message about NC maint:off | 2018-09-04 22:32:42 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 018cc4a0ad | Redirected sqldump output to logfile | 2018-09-04 22:27:13 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | e1c13f06a7 | Log script completion | 2018-09-04 22:20:52 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | c42f58b09e | Deleted sqlDumpFile after backup completed | 2018-09-04 22:20:33 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | aaa1cae43d | Fixed exit codes | 2018-09-04 22:19:45 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 1ce0bae3bc | Take NextCloud out of maintenance mode | 2018-09-04 22:18:06 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 3b8556dea7 | Remove 503 page to restore web access | 2018-09-04 22:15:00 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 4459142100 | Initial BorgBackup PRUNE to trim old backups and log the results | 2018-09-04 22:13:26 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | e408856b08 | Report BorgBackup result in log file. | 2018-09-04 22:12:49 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | c8a662bc1e | Call BorgBackup to create new archive | 2018-09-04 22:12:20 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 8d7bbfcf80 | Added export variables to prepare for calling BorgBackup | 2018-09-04 20:38:09 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | ad972f1c71 | Changed exit codes for consistency rather than script order. | 2018-09-04 20:34:32 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | fcd7a4ae6c | Added SQLdump | 2018-09-04 20:32:29 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 0f80a3b466 | Added error-check for maint. mode | 2018-09-04 20:28:52 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 67642ab276 | Added webUser variable. NC maint mode. | 2018-09-04 20:20:10 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 8ae55fb199 | map sqlDetails file to array variable | 2018-09-04 18:34:14 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 30b1f2a4d7 | Added 503 copy section | 2018-09-04 18:30:38 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | d215cec7c3 | Added sqlDetails section in variable defintions at top of script. | 2018-09-04 18:28:40 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | a4e0e4c71b | Added sqlDump directory creation. Added sqldump filename generation. | 2018-09-04 18:22:46 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 94ff195a9e | Added derived paths to files | 2018-09-04 18:20:38 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | d38ec9c9dd | Write script start to log file | 2018-09-04 18:15:48 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 11b5c4f5c9 | Added run-as-root check (disabled) Add in-script elevation for testing. | 2018-09-04 18:14:26 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 9cb04f39a0 | Setup script variables and comments | 2018-09-04 18:13:18 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | 779389678e | Added 503-backup notice page | 2018-09-04 18:06:10 -06:00 |  | 
			
				
					| 
							
							
								 Asif Bacchus | ee5456533a | Added backup script file | 2018-09-04 18:03:37 -06:00 |  |