Commit graph

595 commits

Author SHA1 Message Date
Jérémy Lecour 4829232a65 quote variable 2020-04-21 09:03:01 +02:00
Jérémy Lecour ea912c40f0 missing whitespace 2020-04-20 23:43:56 +02:00
Jérémy Lecour 5f3cc873a1 fix date format 2020-04-20 23:43:45 +02:00
Jérémy Lecour 11bb59831c bkctld-rm: state the age of the process when killing it 2020-04-20 23:31:39 +02:00
Jérémy Lecour ea140f6137 fix log message wording 2020-04-20 23:30:57 +02:00
Jérémy Lecour 86e88ad2c2 fix log date format
%S = seconds
%s = number of seconds since epoch
2020-04-20 23:30:45 +02:00
Patrick Marchand ec994f7e2c Removed a ignore shellcheck comment in zzz_evobackup and fix warning
Since only one PID can be in the PID file, we will never have more than one, we can thus easily quote the variable and remove the shellcheck ignore.
2020-04-20 12:12:51 -04:00
Jérémy Lecour a937049780 Release 2.3.0 2020-04-20 08:30:00 +02:00
Jérémy Lecour 205e3774a9 rewrite log messages and format 2020-04-20 08:29:21 +02:00
Jérémy Lecour 35d257d9c7 rm/inc : log progress 2020-04-20 00:38:44 +02:00
Jérémy Lecour 18e5173600 remove obsolete test 2020-04-19 11:24:13 +02:00
Jérémy Lecour 0bad1a2cba Release 2.2.2 2020-04-19 10:07:35 +02:00
Jérémy Lecour 1846be4e45 better quotes 2020-04-19 10:05:20 +02:00
Jérémy Lecour 478703d96e No space before colons in log messages 2020-04-19 09:56:52 +02:00
Jérémy Lecour 32f242fe9c Reorganize temp files and lock files
Temp files/dirs all share a common prefix, so we can delete them all 
effectively
Lock file is managed globally for bkctld-rm.
No need for a lock file for bkctld-inc anymore since there is a check on 
the inc directory before starting.
2020-04-19 09:55:43 +02:00
Jérémy Lecour f66d832d3a properly call subcommands 2020-04-19 00:16:30 +02:00
Jérémy Lecour 096fe95b2f bkctld-rm: fix lock file management
logic was badly implemented
2020-04-18 19:11:08 +02:00
Jérémy Lecour 723c8511e1 Don't forget to log the start time! 2020-04-18 19:10:19 +02:00
Jérémy Lecour 7a13a42ad2 Create empty directory in the default tmp directory 2020-04-18 19:09:52 +02:00
Jérémy Lecour 5ae3f04098 exclude build directory in vagrant rsync 2020-04-18 10:40:28 +02:00
Jérémy Lecour 7d9043acc9 Release 2.2.1 2020-04-18 10:34:50 +02:00
Jérémy Lecour f7e8324ba5 Embed check-incs and check-last-incs in bkctld 2020-04-18 10:29:21 +02:00
Jérémy Lecour 0dcd72d3f2 move relative_date() function to includes files 2020-04-18 10:28:44 +02:00
Jérémy Lecour 4c9cbf976e subcommand options are examined in their respective context 2020-04-18 10:28:06 +02:00
Jérémy Lecour 14c4b63e69 error() function is not available at this stage 2020-04-18 10:26:51 +02:00
Jérémy Lecour 2fd063fee4 gitignore build directory 2020-04-18 10:26:08 +02:00
Jérémy Lecour 8e2ed4eae7 Merge pull request 'Code cleanup' (#33) from jlecour-refactoring into master 2020-04-17 15:32:38 +02:00
Patrick Marchand d2b6094f7f Fix quoting and escaping shellcheck errors
shellcheck was still complaining about a few SC1117 and SC2086
warnings. I ignored those that did not seem necessary and fixed the
rest. The less linter noise the better.
2020-04-15 14:46:14 -04:00
Jérémy Lecour 731be98193 Add pt-show-grants to dump MySQL grants 2020-04-15 15:49:41 +02:00
Jérémy Lecour 9057a2780a check-incs : no error if date is in the future 2020-04-12 12:49:46 +02:00
Jérémy Lecour 9c6be0e74c bkctld-rm: fix inc removal
echo-ing the list of incs gives a single line, hard to match with lines 
in the keep file.
We store the incs list in a temp file to help comparing contents.
2020-04-12 11:45:21 +02:00
Jérémy Lecour 7e5aad727f Improve documentation wording 2020-04-12 11:43:41 +02:00
Jérémy Lecour 2d4cae58bc fix typo 2020-04-12 11:43:06 +02:00
Jérémy Lecour 35bed002f0 add shellcheck shell directive to bash_completion 2020-04-11 10:01:46 +02:00
Jérémy Lecour 908e3c8b3a whitespaces 2020-04-11 10:01:00 +02:00
Jérémy Lecour e01a705cff Revamp the README 2020-04-11 09:23:09 +02:00
Jérémy Lecour 8e780eafed Add tests for Buster (ext4/btrfs) 2020-04-11 08:54:01 +02:00
Jérémy Lecour e14ca8dff3 Bad firewall now returns a simple Warning 2020-04-11 08:53:41 +02:00
Jérémy Lecour b1c45b1738 Don't instruct to use a specific branch when installing manually 2020-04-11 08:41:36 +02:00
Jérémy Lecour 3198ba7f37 bkctld-rm: log incs to be deleted 2020-04-11 08:41:04 +02:00
Jérémy Lecour 401c8cd34c Add CHANGELOG file 2020-04-11 08:40:25 +02:00
Jérémy Lecour 51940220dd Instructions to install manually from sources 2020-04-10 08:42:15 +02:00
Jérémy Lecour 11f84a9f7b Emit a warning if no firewall file is configured 2020-04-08 18:35:09 +02:00
Jérémy Lecour bdc6b4fa4d bkctld-check: sourcing issue is just a warning 2020-04-08 18:32:27 +02:00
Jérémy Lecour a0b3c4fd26 bkctld-check: shorter output 2020-04-08 17:54:09 +02:00
Jérémy Lecour c2f39a0218 bkctld-check: don't eval the variables 2020-04-08 17:53:56 +02:00
Jérémy Lecour effecc689d bkctld: auto-detect lib directory 2020-04-08 17:53:28 +02:00
Jérémy Lecour 8099dcbbfe reformat authors list 2020-04-08 17:51:56 +02:00
Jérémy Lecour e1208ed2b8 shellcheck improvements for bats tests 2020-04-08 16:49:27 +02:00
Jérémy Lecour e5997400cd bkctld-check: verify that firewall rules are sourced 2020-04-08 12:26:59 +02:00