Commit Graph

163 Commits

Author SHA1 Message Date
Asif Bacchus
ca62d81368 dump sql 2020-05-06 23:54:31 -06:00
Asif Bacchus
72e396fa64 fix error in printf format string 2020-05-06 23:53:02 -06:00
Asif Bacchus
992f8ef16e stop containers before backup starts 2020-05-06 23:38:26 -06:00
Asif Bacchus
9d7b7e1a94 add func doDocker 2020-05-06 23:32:53 -06:00
Asif Bacchus
4fb6315643 clean up function names for consistency 2020-05-06 23:18:01 -06:00
Asif Bacchus
d9c662bb45 move sql temp dir creation and 503-copy
moved to after borg configuration checks to consoldate checks vs actions
2020-05-06 23:02:07 -06:00
Asif Bacchus
e9884a347f note err code for sql temp dir creation fail 2020-05-06 22:59:35 -06:00
Asif Bacchus
8a5a87db12 add SQL directory to cleanup 2020-05-06 22:57:41 -06:00
Asif Bacchus
0d32aaf40a change sql temp dir creation process 2020-05-06 22:56:52 -06:00
Asif Bacchus
bb952a3aba get and report mc volumes, sql backup location 2020-05-06 22:30:58 -06:00
Asif Bacchus
dccf5e17d0 source and use mailcow.conf 2020-05-06 22:30:19 -06:00
Asif Bacchus
35ce452dec fix var declaration 2020-05-06 22:30:03 -06:00
Asif Bacchus
604d3da07d add mc params, defaults and pre-req checks 2020-05-06 22:15:55 -06:00
Asif Bacchus
a5bc4549e9 basic import from generic backup script 2020-05-06 21:29:48 -06:00
Asif Bacchus
04bc748816 add 'all' switch to docker ps 2020-03-06 00:43:04 -07:00
Asif Bacchus
a26bb36f17 define containerName once 2019-09-10 17:22:43 -06:00
Asif Bacchus
bbbdf38dcc change mailcowConfigFilePath to explicit param 2019-09-10 16:58:30 -06:00
Asif Bacchus
43f1bb0021 update gitignore, add gitattributes 2019-09-10 16:34:53 -06:00
Asif Bacchus
b371e18ab0 'containerName' instead of 'rname' for consistency 2019-09-10 15:23:45 -06:00
Asif Bacchus
fb8091ecce
Merge pull request #1 from hockeymikey/master
Ensure non-exactly named services are found
2019-09-09 16:45:55 -06:00
hockeymikey
25c6b407a6
Ensure non-exactly named services are found
My naming scheme for my mailcown was like -mailcow_1_k8bdj9op so the script never found them. This ensures they do.
2019-09-07 12:33:54 -05:00
Asif Bacchus
3ddc2c5d4a quoted path-related vars to prevent issues with spaces in path 2019-01-30 12:27:54 -07:00
Asif Bacchus
82f80d0f83 made explanations clearer regarding remote server and keys 2019-01-30 12:22:02 -07:00
Asif Bacchus
0597127cbf clear up confusion between ssh and borg key passwords 2019-01-30 12:19:24 -07:00
Asif Bacchus
e23feddb1b added comment for stamp function 2018-10-28 05:25:59 -06:00
Asif Bacchus
12bc49a59e replaced all ${stamp} with [$(stamp)] 2018-10-28 05:12:50 -06:00
Asif Bacchus
a14d0ba4a5 removed fixed 'stamp' var and replaced it with a function so it updates 2018-10-28 05:10:58 -06:00
Asif Bacchus
ed9db22534 execute docker-compose exec ops w/o TTY (-T) 2018-10-25 13:47:37 -06:00
Asif Bacchus
7e92495c94 Check exitcode from within redis container after cli-save 2018-10-25 13:26:22 -06:00
Asif Bacchus
0808888030 Check dump exitcode from within mysql container 2018-10-25 13:18:31 -06:00
Asif Bacchus
8bb9617e34 Corrected missing 'then' 2018-10-25 10:41:38 -06:00
Asif Bacchus
fb6a2e9014 Clean old redis backup and then check if new backup > 0 bytes written 2018-10-25 10:37:17 -06:00
Asif Bacchus
6b91b93738 Moved docker volume location vars earlier in script 2018-10-25 10:10:13 -06:00
Asif Bacchus
5af5a064a9 replaced redis err check w/ verification of success string piped to log 2018-10-25 09:42:22 -06:00
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
adb3eb2785 readme: updated logwatch section and fixed typos 2018-10-23 05:53:00 -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