Commit Graph

  • 458a7d16e4 Initialize parameters Asif Bacchus 2018-09-19 15:45:59 -0600
  • 71f7644175 Show scriptHelp if no parameters given. Redirect unknown parameters. Asif Bacchus 2018-09-19 15:44:32 -0600
  • 8be32fc01d Trap for unrecognized parameters Asif Bacchus 2018-09-19 15:41:44 -0600
  • 9d0989f9a9 scriptHelp exits with code 98 and NO logging Asif Bacchus 2018-09-19 15:38:19 -0600
  • 4eee202c5e Added quit function Asif Bacchus 2018-09-19 15:36:57 -0600
  • dc48cb1257 Added scriptHelp exit code 98 Asif Bacchus 2018-09-19 15:31:57 -0600
  • 7b13d984d8 Added preset formatting as variables Asif Bacchus 2018-09-19 15:31:07 -0600
  • 0127494657 Initial setup of backup script Asif Bacchus 2018-09-19 15:12:56 -0600
  • f9298f6fb8 updated create sqlDumpDir section Asif Bacchus 2018-09-07 04:59:24 -0600
  • 0b4923fd79 Removed 'done' message after directory creation since not confirmed. Asif Bacchus 2018-09-07 04:52:27 -0600
  • 5beb643819 fixed variable typo Asif Bacchus 2018-09-07 04:39:49 -0600
  • 3783c7db19 Updated sqlDumpDir section to use updated checkExist Asif Bacchus 2018-09-07 04:39:11 -0600
  • 626c6736b1 checkExist: removed 'verify' command, redundant to 'find' Asif Bacchus 2018-09-07 04:33:59 -0600
  • 14490061c3 checkExist: file not found: updated code to 5 and changed occurances Asif Bacchus 2018-09-07 04:25:05 -0600
  • dc95edf22c checkExist: error: removed forced exit, log error instead Asif Bacchus 2018-09-07 04:24:00 -0600
  • 2ada11039a added cleanup before exiting in checkExist Asif Bacchus 2018-09-07 04:17:09 -0600
  • 1a3cfcb729 Added warning list to error exit sections Asif Bacchus 2018-09-07 04:14:12 -0600
  • 7d3a59222e Added error handling to NC maint call section Asif Bacchus 2018-09-07 04:01:54 -0600
  • 2a950b28c6 Created cleanup function for 503 and sqlDump Asif Bacchus 2018-09-07 03:57:46 -0600
  • 1a59dcf2b6 Removed mention of code 105 in top comments. Asif Bacchus 2018-09-07 03:44:50 -0600
  • bcf5d079a1 Updated functions to provide code 200 for un-coded circumstances Asif Bacchus 2018-09-07 03:44:03 -0600
  • 85ace3d5fd Replaced enter NC maint section with function call Asif Bacchus 2018-09-07 03:40:45 -0600
  • d4340201fe Added ncMaint function to enter/exit NC maint mode Asif Bacchus 2018-09-07 03:33:56 -0600
  • a308700086 Added exitError array for deferred exit. Critical errors, but still had to cleanup. Asif Bacchus 2018-09-07 03:23:16 -0600
  • 9154e4c76e Changed warning exit code Asif Bacchus 2018-09-07 03:18:36 -0600
  • f9de2c8398 Updated top comments with exit codes Asif Bacchus 2018-09-07 02:57:16 -0600
  • f792f69b6a Added exitWarning flags for borg return codes Asif Bacchus 2018-09-07 02:49:48 -0600
  • edd4cfb984 corrected calls to checkExist from 503 and sqlDump removal sections Asif Bacchus 2018-09-07 02:32:51 -0600
  • 6ebbb262d5 Changed script exit to list all warnings in array variable (code 100) Asif Bacchus 2018-09-07 02:23:02 -0600
  • 10f58c4c0a removed 'logFileQuiet' since it's un-needed. Writes to that logfile are writes to all files. Asif Bacchus 2018-09-07 02:09:06 -0600
  • 45071d8ddf remove sqlDump section: Use new checkExist 'file not found' code Asif Bacchus 2018-09-07 02:00:00 -0600
  • d518a56027 503 removal section: use new checkExist 'file not found' code Asif Bacchus 2018-09-07 01:57:14 -0600
  • 20435c4e76 checkExist: added return code 3 for 'file not found'. Asif Bacchus 2018-09-07 01:53:17 -0600
  • 65c34ba1d2 checkExist: removed 'noFind' Asif Bacchus 2018-09-07 01:40:17 -0600
  • daf22676e5 checkExist: removed 'noFind' section. Redundant with 'find' Asif Bacchus 2018-09-07 01:37:32 -0600
  • fc786fdba7 checkFind: added provisions for: checking for deleted file unknown error with code 105 Asif Bacchus 2018-09-07 01:23:33 -0600
  • c098b5c8fc Rewrote sqlDump removal and cleaned up the 503 removal section Asif Bacchus 2018-09-06 04:28:11 -0600
  • 700d04d544 Correcting text in 503 removal section Asif Bacchus 2018-09-06 04:20:17 -0600
  • c3d25c391d Rewrote 503 removal section to use checkExist Asif Bacchus 2018-09-06 04:19:11 -0600
  • b9a3948372 Switched NC failure to exit maint mode from error to warning. Asif Bacchus 2018-09-06 04:02:21 -0600
  • 934abe56dd Setup array variable for exitWarnings Asif Bacchus 2018-09-06 04:00:11 -0600
  • 5a6d287d94 Changed error and warning messages for consistency (using CAPS) Asif Bacchus 2018-09-06 03:41:16 -0600
  • 4d43b03419 Updated BorgBackup sections to use new logging variables Asif Bacchus 2018-09-06 03:30:43 -0600
  • c7b9ec9bcd Fixed variable type in NC maint section. Tested script. Asif Bacchus 2018-09-06 03:20:09 -0600
  • 9cae90f3d9 Updated error codes Asif Bacchus 2018-09-06 03:14:34 -0600
  • af035719f8 Updated SQL dump section to use new quit function Asif Bacchus 2018-09-06 03:14:19 -0600
  • 664290acd2 Updated NC maint section to use new quit function Asif Bacchus 2018-09-06 03:11:13 -0600
  • 185860100d Removed old 503 section Asif Bacchus 2018-09-06 03:00:07 -0600
  • d6746a2548 checkExist: Updated warning and error text for consistency. Asif Bacchus 2018-09-06 02:59:22 -0600
  • a4a4e2fd08 503: Updated warning text for consistency. Asif Bacchus 2018-09-06 02:58:26 -0600
  • 1dfaf9addc Fixed logging in 503 copy section Asif Bacchus 2018-09-06 02:48:16 -0600
  • db21064b8a checkExist: simplifed logging. Write directly to logFile instead of tee for warnings and errors. Asif Bacchus 2018-09-06 02:39:24 -0600
  • 213210eef4 Rewrote 503 section to use checkExist Asif Bacchus 2018-09-06 02:37:41 -0600
  • 2c51deb600 Cosmetic typo fixed in checkExist. Tested function. Asif Bacchus 2018-09-06 02:10:55 -0600
  • e255bfb8c8 checkExist: Added timestamps Asif Bacchus 2018-09-06 02:07:21 -0600
  • 3fc85fb037 Updated sqlDumpFile name generation section logging params Asif Bacchus 2018-09-06 02:01:53 -0600
  • f41c3643ce Reset after testing. Removed old sqlDumpDir check. Asif Bacchus 2018-09-06 01:58:31 -0600
  • 0a1948fed0 checkExist: Redirected output from mkdir to tee Asif Bacchus 2018-09-06 01:56:28 -0600
  • c7c3f5771a checkExist: updated logfile outputs Asif Bacchus 2018-09-06 01:44:18 -0600
  • 9052e2a68e checkExist: redirect mkdir output to logfile Asif Bacchus 2018-09-06 01:36:09 -0600
  • 1ea15caa87 Updated sqlDumpDir check to use new checkExist function Asif Bacchus 2018-09-06 01:28:09 -0600
  • 5c142fd329 Added function to check existance, create/verify and warn or quit. Asif Bacchus 2018-09-06 01:16:48 -0600
  • dbfd5f64a0 Quit function added with error code reporting Asif Bacchus 2018-09-06 00:37:21 -0600
  • 9fed8511ee Added logging verbosity parameter detection and logfile variable setup. Asif Bacchus 2018-09-06 00:26:33 -0600
  • 8bcfad2dac Correction to self-elevation section that is disabled in production. Asif Bacchus 2018-09-06 00:03:40 -0600
  • 57dd2de557 Updated comments and instructions to include logging verbosity param. Asif Bacchus 2018-09-06 00:02:39 -0600
  • ee7a84fb59 Added sample sqlDetails Asif Bacchus 2018-09-05 17:57:02 -0600
  • cec58e7bd4 Added sample excludeLocations.borg Asif Bacchus 2018-09-05 17:55:43 -0600
  • e955eb4c9e Added sample xtraLocations.borg Asif Bacchus 2018-09-05 17:54:18 -0600
  • b1645b90f1 Added sample repoDetails.borg Asif Bacchus 2018-09-05 17:51:12 -0600
  • cd6f19c0b1 added checkpoint interval variable for borg Asif Bacchus 2018-09-05 17:48:12 -0600
  • d66a8b859b Added exclude parameter to borg create command Asif Bacchus 2018-09-05 17:24:51 -0600
  • 94399a5b84 Fixed NC maint mode commands Asif Bacchus 2018-09-05 17:22:57 -0600
  • d06f446fd5 Commented in-script elevation, activated explicit root check Asif Bacchus 2018-09-05 17:20:38 -0600
  • bc6badb8b1 Added exclude variable Asif Bacchus 2018-09-05 17:20:08 -0600
  • cd3e69c081 Fixed notification message about NC maint:off Asif Bacchus 2018-09-04 22:32:42 -0600
  • 018cc4a0ad Redirected sqldump output to logfile Asif Bacchus 2018-09-04 22:27:13 -0600
  • e1c13f06a7 Log script completion Asif Bacchus 2018-09-04 22:20:52 -0600
  • c42f58b09e Deleted sqlDumpFile after backup completed Asif Bacchus 2018-09-04 22:20:33 -0600
  • aaa1cae43d Fixed exit codes Asif Bacchus 2018-09-04 22:19:45 -0600
  • 1ce0bae3bc Take NextCloud out of maintenance mode Asif Bacchus 2018-09-04 22:18:06 -0600
  • 3b8556dea7 Remove 503 page to restore web access Asif Bacchus 2018-09-04 22:15:00 -0600
  • 4459142100 Initial BorgBackup PRUNE to trim old backups and log the results Asif Bacchus 2018-09-04 22:13:26 -0600
  • e408856b08 Report BorgBackup result in log file. Asif Bacchus 2018-09-04 22:12:49 -0600
  • c8a662bc1e Call BorgBackup to create new archive Asif Bacchus 2018-09-04 22:12:20 -0600
  • 8d7bbfcf80 Added export variables to prepare for calling BorgBackup Asif Bacchus 2018-09-04 20:38:09 -0600
  • ad972f1c71 Changed exit codes for consistency rather than script order. Asif Bacchus 2018-09-04 20:34:32 -0600
  • fcd7a4ae6c Added SQLdump Asif Bacchus 2018-09-04 20:32:29 -0600
  • 0f80a3b466 Added error-check for maint. mode Asif Bacchus 2018-09-04 20:28:52 -0600
  • 67642ab276 Added webUser variable. NC maint mode. Asif Bacchus 2018-09-04 20:20:10 -0600
  • 8ae55fb199 map sqlDetails file to array variable Asif Bacchus 2018-09-04 18:34:14 -0600
  • 30b1f2a4d7 Added 503 copy section Asif Bacchus 2018-09-04 18:30:38 -0600
  • d215cec7c3 Added sqlDetails section in variable defintions at top of script. Asif Bacchus 2018-09-04 18:28:40 -0600
  • a4e0e4c71b Added sqlDump directory creation. Added sqldump filename generation. Asif Bacchus 2018-09-04 18:22:46 -0600
  • 94ff195a9e Added derived paths to files Asif Bacchus 2018-09-04 18:20:38 -0600
  • d38ec9c9dd Write script start to log file Asif Bacchus 2018-09-04 18:15:48 -0600
  • 11b5c4f5c9 Added run-as-root check (disabled) Add in-script elevation for testing. Asif Bacchus 2018-09-04 18:14:26 -0600
  • 9cb04f39a0 Setup script variables and comments Asif Bacchus 2018-09-04 18:13:18 -0600
  • 779389678e Added 503-backup notice page Asif Bacchus 2018-09-04 18:06:10 -0600
  • ee5456533a Added backup script file Asif Bacchus 2018-09-04 18:03:37 -0600