Commit Graph

180 Commits

Author SHA1 Message Date
Asif Bacchus
85ace3d5fd Replaced enter NC maint section with function call 2018-09-07 03:40:45 -06:00
Asif Bacchus
d4340201fe Added ncMaint function to enter/exit NC maint mode 2018-09-07 03:33:56 -06:00
Asif Bacchus
a308700086 Added exitError array for deferred exit.
Critical errors, but still had to cleanup.
2018-09-07 03:23:16 -06:00
Asif Bacchus
9154e4c76e Changed warning exit code 2018-09-07 03:18:36 -06:00
Asif Bacchus
f9de2c8398 Updated top comments with exit codes 2018-09-07 02:57:16 -06:00
Asif Bacchus
f792f69b6a Added exitWarning flags for borg return codes 2018-09-07 02:49:48 -06:00
Asif Bacchus
edd4cfb984 corrected calls to checkExist from 503 and sqlDump removal sections 2018-09-07 02:32:51 -06:00
Asif Bacchus
6ebbb262d5 Changed script exit to list all warnings in array variable (code 100) 2018-09-07 02:23:02 -06:00
Asif Bacchus
10f58c4c0a removed 'logFileQuiet' since it's un-needed.
Writes to that logfile are writes to all files.
2018-09-07 02:09:06 -06:00
Asif Bacchus
45071d8ddf remove sqlDump section:
Use new checkExist 'file not found' code
2018-09-07 02:00:00 -06:00
Asif Bacchus
d518a56027 503 removal section: use new checkExist 'file not found' code 2018-09-07 01:57:14 -06:00
Asif Bacchus
20435c4e76 checkExist: added return code 3 for 'file not found'. 2018-09-07 01:53:17 -06:00
Asif Bacchus
65c34ba1d2 checkExist: removed 'noFind' 2018-09-07 01:40:17 -06:00
Asif Bacchus
daf22676e5 checkExist: removed 'noFind' section. Redundant with 'find' 2018-09-07 01:37:32 -06:00
Asif Bacchus
fc786fdba7 checkFind: added provisions for:
checking for deleted file
unknown error with code 105
2018-09-07 01:23:33 -06:00
Asif Bacchus
c098b5c8fc Rewrote sqlDump removal and cleaned up the 503 removal section 2018-09-06 04:28:11 -06:00
Asif Bacchus
700d04d544 Correcting text in 503 removal section 2018-09-06 04:20:17 -06:00
Asif Bacchus
c3d25c391d Rewrote 503 removal section to use checkExist 2018-09-06 04:19:11 -06:00
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
cec58e7bd4 Added sample excludeLocations.borg 2018-09-05 17:55:43 -06:00
Asif Bacchus
e955eb4c9e Added sample xtraLocations.borg 2018-09-05 17:54:18 -06:00
Asif Bacchus
b1645b90f1 Added sample repoDetails.borg 2018-09-05 17:51:12 -06:00
Asif Bacchus
cd6f19c0b1 added checkpoint interval variable for borg 2018-09-05 17:48:12 -06:00