Commit graph

185 commits

Author SHA1 Message Date
Benoît S. f9678c0ec7 Mini patches to support wheezy 2018-03-23 15:31:28 +01:00
Victor LABORIE d430740383 Add bats test for NRPE check 2018-03-15 12:41:54 +01:00
Victor LABORIE bde8072941 Refactoring VagrantFile and add test section to README
* nodes are set in an array
* add ext4 nodes in addition to btrfs nodes
* run bats test from nodes
2018-03-15 11:56:20 +01:00
Victor LABORIE 8bfa8e18dd Add basics tests with bats 2018-03-05 16:16:18 +01:00
Victor LABORIE 506b1e94f9 Use run command for bats test 2018-03-05 15:43:36 +01:00
Victor LABORIE 72993de1c2 Use bats for unit test with Vagrant 2018-03-05 15:29:08 +01:00
Victor LABORIE e32c8c31ac Add a Vagrantfile for test with Vagrant 2018-03-05 14:15:23 +01:00
Benoît S. b30e0ef775 Remove mongodump backup dir before dumping
This is mandatory, elsewhere you'll retain old DBs/collections dumped.
2018-02-13 11:57:29 +01:00
Gregory Colpart 0b9049b568 Improve mysqldump in zzz_evobackup (thanks Bruno for the idea) 2018-02-08 01:44:14 +01:00
Victor LABORIE 3b40cb19d9 Fix bkctld logging on non interactive usage 2017-12-04 11:49:45 +01:00
Victor LABORIE 1b2491e201 Fix docs and README for zzz_evobackup 2017-12-04 10:56:45 +01:00
Daniel Jakots 5819a00ada zzz_evobackup is not part of the documentation... 2017-11-13 16:28:34 -05:00
Jérémy Lecour f7b8e96547 zzz_evobackup: fix arithmetics
09 % 2 is invalid
2017-10-09 11:34:18 +02:00
Gregory Colpart 7c04155fe8 add exclude for default php sessions path for Debian 9 2017-09-29 09:51:17 +02:00
Daniel Jakots d31bec4eb7 there's no /boot on OpenBSD 2017-09-07 11:05:34 -04:00
Daniel Jakots 5c8e46491a group things that need to be changed 2017-09-07 11:05:05 -04:00
Benoît S. ade9cd0e7c When doing cd -, redirect stdout
Because, `cd -` will displays on stdout the path... And we want only errors in
the cron output.
2017-09-07 10:01:27 +02:00
Victor LABORIE 7b9f834e4a Fix bashims amd deprecated backquote in sample script 2017-09-01 14:16:50 +02:00
Victor LABORIE dbea4d46b1 Use touch instead of lastlog in sshrc
Because lastlog -S doesn't work on Debian Jessie
lastlog: invalid option -- 'S'
2017-08-30 17:24:45 +02:00
Victor LABORIE fc7229fe9f Clean jail before creating it 2017-08-30 17:24:45 +02:00
Victor LABORIE 9606b23d97 Update lastlog even on non interactive ssh (eg. with rsync) 2017-08-30 17:24:45 +02:00
Victor LABORIE 985c72194a Fix /var/run to /run symlink 2017-08-30 17:24:45 +02:00
Benoît S. 2f8b655fa6 Use -e instead of -f when checking for Keyfile
Why? Because we can use FD in place of regular files. Like this:
root@backup:~# bkctld key test <(echo "ssh-rsa AA...")
Update test : key = /dev/fd/63
2017-08-30 17:23:45 +02:00
Victor Laborie ea5362ca2a Add mount check when starting jail 2017-08-17 14:55:09 -04:00
Victor Laborie 3bd4294cfb Fix jail cleaning when not running 2017-08-17 14:53:40 -04:00
Victor Laborie 44620c363a Detect btrfs command path instead of harcoding it 2017-08-17 10:35:08 -04:00
Victor Laborie 00e1569fd6 Move /var/run to /run 2017-08-17 10:35:08 -04:00
Victor Laborie f911adfe88 Fix host_key usage in sshd_config tpl 2017-08-17 10:35:08 -04:00
Daniel Jakots a16cd4be55 fix file name 2017-08-05 17:33:00 -04:00
Victor Laborie 26098f1020 Fix right on check_nrpe 2017-08-05 16:05:31 -04:00
Victor Laborie 5d462bf72a Add explicit LICENCE file 2017-08-05 15:49:27 -04:00
Victor LABORIE 2ec3f27938 Add nrpe check 2017-08-01 21:01:55 +02:00
Victor LABORIE 2688ac99bc Set UseDNS to no in default jail's sshd_config 2017-08-01 16:38:38 +02:00
Victor LABORIE f2146a56e5 Simplier, lighter and more secure jail 2017-07-21 16:46:37 +02:00
Victor LABORIE 4b86284ca0 Don't copy dsa host key but copy ecdsa and ed25519 if present 2017-07-21 16:46:36 +02:00
Victor LABORIE 4cbe721eb6 Use sh instead of bash for root in jail 2017-07-21 16:46:36 +02:00
Victor LABORIE f8b5269ca3 Allow only SSH key in default sshd_config 2017-07-21 16:46:36 +02:00
Victor LABORIE 8f2c869dfa Fix sshd logging 2017-07-21 16:46:36 +02:00
Victor LABORIE 431a245d65 Bump version to 1.4 2017-07-21 16:46:36 +02:00
Victor LABORIE 8ac454dae0 Fix shellcheck warnings 2017-07-19 14:08:48 +02:00
Victor LABORIE b8e4c3f11b Posix compatibility
* Don't use brace expansion
* Don't use process substitution
* Don't use source keyword
* Don't use $RANDOM var
2017-07-19 13:40:16 +02:00
Victor LABORIE 03ce05b2a9 Cleaning, thanks to shellcheck 2017-07-18 16:02:43 +02:00
Victor LABORIE a4e3b72373 Bump version to 1.3 2017-07-17 11:36:11 +02:00
Victor LABORIE e82340943b Fix if [[ -> if [ 2017-07-13 16:41:38 +02:00
Victor LABORIE beecd93c2b Fix btrfs support/detection 2017-07-13 16:41:32 +02:00
Gregory Colpart 641d400afa Improve packages list backup 2017-07-12 01:19:22 +02:00
Victor LABORIE 1a777afb5f Add chroot dependency to README 2017-05-17 16:46:54 +02:00
Victor LABORIE cc4bee52bd Btrfs snapshot (incs) are now readonly 2017-05-17 16:46:54 +02:00
Daniel Jakots b7fedb5609 Use English for var names 2017-05-15 13:20:44 -04:00
Benoît S. d461e44609 Another method with gzip directly piped for pg_dumpall. 2017-04-04 09:47:47 +02:00