Jérémy Lecour
5821e87e4b
Add a variable for local backup
2017-10-28 14:16:48 +02:00
Jérémy Lecour
125ca2c203
Add braces around variables
2017-10-28 14:12:04 +02:00
Jérémy Lecour
3b396b8f2d
Switch to bash and properly rotate servers
...
Arithmetics should be used to should a server from a list
but not to compose the name of the server.
Also, server names are not always composed of a numeric part
that could be determined automatically.
2017-10-28 14:07:16 +02: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
Victor LABORIE
e5ac7e6e73
Delete firewall rules on bkctld remove
2017-03-31 14:54:18 +02:00
Victor LABORIE
d8b6fe9d87
Dump all disk (include vd[a-z]) on Linux (work for mbr and gpt disk)
2017-03-27 11:36:53 +02:00
Victor LABORIE
8c4be9fc0d
Update man page
2017-03-24 12:20:51 +01:00
Victor LABORIE
e815d61867
Use lazy umount (wait for sshd stop)
2017-03-24 12:19:19 +01:00
Daniel Jakots
661e69ed4b
autodetect the system we run on
2017-03-23 13:57:50 -04:00
Victor LABORIE
207386de28
Fix schema on README
2017-03-17 11:07:56 +01:00
Victor LABORIE
7493327b1b
Don't automatically purge incs with bkctld remove (cp version)
2017-03-15 11:15:55 +01:00
Victor LABORIE
da72a2e71b
Add uname in client sample script ( Fix #1953 )
2017-02-17 13:19:53 +01:00
Victor LABORIE
031723d26a
Add local dir for surcharge default templates files
2017-02-17 13:19:53 +01:00