Victor LABORIE
0e2eb24850
Double quote all vars and add brackets
2018-04-05 15:52:31 +02:00
Victor LABORIE
828a243745
Force variables definition and add a set -u
2018-04-05 15:52:31 +02:00
Victor LABORIE
4b788a99d8
Retab
2018-04-05 15:52:31 +02:00
Victor LABORIE
1bcdb8fba5
Use cat instead of echo for usage function
2018-04-05 15:52:31 +02:00
Victor LABORIE
fa8ce4fc3f
Refactoring of logging and notification
...
* Use logger command, no longer write directly to logfile
* Loglevel can be set in bkctld.conf
* Remove mail notification, cronjob do it when stdout/stderr
2018-04-05 15:52:31 +02:00
Victor LABORIE
608325c828
Add bats test for NRPE check
2018-04-05 15:52:31 +02:00
Victor LABORIE
56ece49b96
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-04-05 15:52:31 +02:00
Victor LABORIE
d1065c9fa6
Add basics tests with bats
2018-04-05 15:52:31 +02:00
Victor LABORIE
fe822ee0d9
Use run command for bats test
2018-04-05 15:52:31 +02:00
Victor LABORIE
47a91a80e5
Use bats for unit test with Vagrant
2018-04-05 15:52:31 +02:00
Victor LABORIE
ea5622c61d
Add a Vagrantfile for test with Vagrant
2018-04-05 15:52:31 +02:00
Benoît S.
8036aaa5c0
Remove mongodump backup dir before dumping
...
This is mandatory, elsewhere you'll retain old DBs/collections dumped.
2018-04-05 15:52:31 +02:00
Gregory Colpart
d6179bddbc
Improve mysqldump in zzz_evobackup (thanks Bruno for the idea)
2018-04-05 15:52:31 +02:00
Victor LABORIE
0dc6a75fda
New upstream release (1.4.9)
2017-12-04 11:52:15 +01:00
Victor LABORIE
58babd5c37
Merge branch 'master' into debian
2017-12-04 11:51:03 +01:00
Victor LABORIE
3b40cb19d9
Fix bkctld logging on non interactive usage
2017-12-04 11:49:45 +01:00
Victor LABORIE
b2c0e004d2
New upstream release (1.4.8)
2017-12-04 10:59:12 +01:00
Victor LABORIE
bf01adb0fd
Merge branch 'master' into debian
2017-12-04 10:57:40 +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
aafa5862f8
New upstream release (1.4.7)
2017-08-30 17:37:25 +02:00
Victor LABORIE
de5c7ab5ea
Merge branch 'master' into debian
2017-08-30 17:29:12 +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
5e4718da08
Merge branch 'master' into debian
2017-08-17 10:47:35 -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
433e90393d
New upstream release (1.4.4)
2017-08-05 16:10:34 -04:00
Victor Laborie
1238902427
Merge branch 'master' into debian
2017-08-05 16:10:15 -04:00
Victor Laborie
26098f1020
Fix right on check_nrpe
2017-08-05 16:05:31 -04:00
Victor Laborie
bd7c5d5c0a
Convert to non native package
2017-08-05 15:54:23 -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