Commit Graph

662 Commits

Author SHA1 Message Date
Jérémy Dubois 664a424aee Send traceroute stderr to stdout
OpenBSD sends its first line of information into stderr
2018-07-25 19:05:26 +02:00
Jérémy Dubois d69a015025 Revert "/srv is not on BSD systems"
This reverts commit 853f6dff21.
Paths in systems variable are always backed up, that is not the case of /srv.
We have to manually remove /srv when we do not want it.
2018-07-16 16:04:43 +02:00
Jérémy Dubois 853f6dff21 /srv is not on BSD systems 2018-07-16 11:54:11 +02:00
Jérémy Dubois 391ef207f7 Add PATH, which is needed for BSD systems 2018-07-16 11:53:23 +02:00
Victor LABORIE 958eeb8776 Use absolute PATH for btrfs command
* Because command -v fail in some cases
2018-07-04 14:48:36 +02:00
Victor LABORIE 1b3b68ba16 Fix last update date of stats index file 2018-06-13 18:21:31 +02:00
Victor LABORIE a835491703 Add incs info to stats 2018-06-13 18:01:43 +02:00
Victor LABORIE f780d4d94a Add stats subcommands 2018-06-13 15:22:21 +02:00
Victor LABORIE ce674490f7 Add bats test for generate jails with different times 2018-05-30 18:33:36 +02:00
Victor LABORIE b1400c83b6 Better bkctld check output 2018-05-30 18:30:15 +02:00
Victor LABORIE dcba6d5634 Merge check_nrpe into bkctld check subcommand 2018-05-30 16:39:26 +02:00
Victor LABORIE f6aca343fb Add doc for Debian packaging 2018-05-30 15:22:17 +02:00
Victor LABORIE 1bc4530430 Convert bkctld man page in a markdown file 2018-05-30 15:21:54 +02:00
Benoît S. 86711f2234 Merge branch 'update_es_backup' 2018-04-05 16:26:22 +02:00
Benoît S. bc1012b091 Modification commentaire 2018-04-05 16:24:18 +02:00
Alexis Ben Miloud--Josselin 7a9e4c6168 Simplify and store deletion logs in /tmp 2018-04-05 16:02:07 +02:00
Victor LABORIE d27bbbc0f5 Rewrite bats tests 2018-03-28 15:11:49 +02:00
Victor LABORIE 2893953ec0 Reload when update params 2018-03-28 14:09:22 +02:00
Victor LABORIE 685b70b632 Fix reload 2018-03-27 18:35:06 +02:00
Victor LABORIE 3c12286704 Double quote all vars and add brackets 2018-03-27 18:22:31 +02:00
Victor LABORIE fa27759cad Force variables definition and add a set -u 2018-03-27 17:11:25 +02:00
Victor LABORIE d565374c5d Retab 2018-03-27 16:39:03 +02:00
Victor LABORIE 0927e79954 Use cat instead of echo for usage function 2018-03-27 16:31:50 +02:00
Victor LABORIE 8680b742dd 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-03-27 16:14:39 +02:00
Alexis Ben Miloud--Josselin 6548c5a1d8 Remove old logs 2018-03-21 18:06:00 +01:00
Alexis Ben Miloud--Josselin f449ea9b9f Removed useless (old) comment 2018-03-21 18:00:25 +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
Alexis Ben Miloud--Josselin 135c1df22a Remove unneeded lines 2018-03-14 14:49:25 +01:00
Alexis Ben Miloud--Josselin afc33a4002 Update elasticsearch snapshot 2018-03-09 10:39:59 +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