Commit Graph

53 Commits

Author SHA1 Message Date
Asif Bacchus
9bd6c9d431 Removed err check for sqldump, replaced w/ dumpfile > 0 existance check 2018-10-25 09:12:01 -06:00
Asif Bacchus
93a0cce519 added checkExist for file > 0 bytes 2018-10-25 09:06:35 -06:00
Asif Bacchus
3c5d766d0c Fixed error checking for sqldump and redis dump. Used -T param in exec 2018-10-25 05:17:14 -06:00
Asif Bacchus
7eebd44ce4 Fixed incorrect variable in err check section of container stop 2018-10-25 04:36:21 -06:00
Asif Bacchus
cb01672be8 Updated variable name in container restart section err check 2018-10-25 04:35:38 -06:00
Asif Bacchus
509a858038 Added container state check to container stop report section 2018-10-25 04:33:36 -06:00
Asif Bacchus
a123b17d52 formatted code in fcn operateDocker 2018-10-25 04:23:32 -06:00
Asif Bacchus
c03eecc1d3 added check for container stop AND exit code in fcn operateDocker stop 2018-10-25 04:22:57 -06:00
Asif Bacchus
292dc3c1b8 added explict PATH export so script can access docker-compose in crontab 2018-10-25 04:17:15 -06:00
Asif Bacchus
062ef420ec SQL dump output changed to actual file instead of dump to logfile! 2018-10-24 13:55:19 -06:00
Asif Bacchus
14dc1af408 Added sample inclusions based on my setup at MTT 2018-10-23 06:06:28 -06:00
Asif Bacchus
7b17dde75a Updated mc_borg.details sample file
Created xtraLocations.borg sample file
2018-10-23 05:54:50 -06:00
Asif Bacchus
b8c2fc58c8 Merge branch 'master' of https://git.asifbacchus.app/asif/MailcowBackup 2018-10-22 06:03:59 -06:00
Asif Bacchus
70c5dc222c Changed exit code for non-root execution to 3, unique 2018-10-22 06:03:30 -06:00
Asif Bacchus
4b45a7a4d3 Updated all warning and error create idx entries to include timestamp 2018-10-22 05:57:38 -06:00
Asif Bacchus
d6f48908b5 Changed warning and error exit reports to incorporate timestamps 2018-10-22 05:46:35 -06:00
Asif Bacchus
3cde67a18c Updated logFile parameter to trim trailing slash 2018-10-21 16:31:44 -06:00
Asif Bacchus
5eb021de04 Updated sample borg details file 2018-10-21 16:11:08 -06:00
Asif Bacchus
deacdcd04e xtraLocations and warning 2116: removed ref to NextCloud 2018-10-21 04:10:25 -06:00
Asif Bacchus
c9926d7c4d Updated SQL & redis checkResult comparison operators 2018-10-21 03:43:50 -06:00
Asif Bacchus
5da2183b2c Changed docker-compose command pipe to stderr > $logFile 2018-10-21 03:40:01 -06:00
Asif Bacchus
72c94544b5 changed docker config default filename 2018-10-21 03:38:57 -06:00
Asif Bacchus
11b5f05d27 Fixed typos in help screen 2018-10-21 01:59:04 -06:00
Asif Bacchus
532bee722b Updated in-script help 2018-10-21 01:46:32 -06:00
Asif Bacchus
00e31c25a5 Changed cleanup to restart and confirm mailflow containers only 2018-10-20 05:50:19 -06:00
Asif Bacchus
e5a004c88c Changed sqldump and redis save fail from warning to error 2018-10-20 05:43:46 -06:00
Asif Bacchus
9c78ec12eb Added start all docker-containers to end of clean up script 2018-10-20 05:38:25 -06:00
Asif Bacchus
9e590bba0f Container stop section using operateDocker function 2018-10-20 05:35:08 -06:00
Asif Bacchus
0b4dd79ea1 export dockerStartTimeout 2018-10-20 05:24:57 -06:00
Asif Bacchus
055dba2152 created function operateDocker for container start and stop 2018-10-20 05:23:43 -06:00
Asif Bacchus
912f8c274a Updated borg commands for MC backup 2018-10-20 05:10:11 -06:00
Asif Bacchus
1e3ef9a302 Set vars with docker volume locations 2018-10-20 05:06:49 -06:00
Asif Bacchus
0c1bc0512c changed misc check variables to be checkResult 2018-10-20 04:48:50 -06:00
Asif Bacchus
4bc31ad274 save redis state 2018-10-20 04:47:50 -06:00
Asif Bacchus
e50116752d dump SQL
fixed typos in container stop lines
2018-10-20 04:42:06 -06:00
Asif Bacchus
5076cebc85 stop postfix and dovecot and error check 2018-10-20 04:30:25 -06:00
Asif Bacchus
a72a8ac450 sql dump 2018-10-19 23:48:02 -06:00
Asif Bacchus
ba2517138e Stop postfix and dovecot in preparation for backup 2018-10-19 23:39:20 -06:00
Asif Bacchus
ad4deb2204 Removed NC specific tasks 2018-10-19 22:46:20 -06:00
Asif Bacchus
da1499d1c6 Created 503 error page 2018-10-19 22:41:05 -06:00
Asif Bacchus
940f69813c Fixed typo in call to find command 2018-10-19 22:31:53 -06:00
Asif Bacchus
7f1c74786e Read mailcow configuration file 2018-10-19 22:31:15 -06:00
Asif Bacchus
910fd0238b Added notification of location of config files being used 2018-10-19 22:27:42 -06:00
Asif Bacchus
ff8f7ffb52 Created empty borg details file 2018-10-19 22:23:57 -06:00
Asif Bacchus
dd9a601542 Check for required files before starting 2018-10-19 22:17:43 -06:00
Asif Bacchus
f0447d637d Deleted NC specific pre-req parameter checks 2018-10-19 21:59:28 -06:00
Asif Bacchus
aa21c7ccae Changed borgDetails default filename to match mailcow 2018-10-19 21:58:07 -06:00
Asif Bacchus
296e69f4a0 Added mailcow specific parameters 2018-10-19 21:56:16 -06:00
Asif Bacchus
72d14ba75b Removed NC specific script parameters 2018-10-19 21:51:30 -06:00
Asif Bacchus
abff332ce0 Added default values for mailcow config files and docker timeouts 2018-10-19 21:49:23 -06:00