Commit graph

425 commits

Author SHA1 Message Date
Jérémy Lecour ddba0942e3 Add variable to toggle the servers fallback 2019-09-23 18:06:00 +02:00
Gregory Colpart 6b26d7fc53 add command to dump Unix rights 2019-09-16 14:15:50 +02:00
Tristan Pilat 27b346a20d Merge branch 'pgrep' of evolix/evobackup into master
@jlecour being okay with this, I merge
2019-09-05 17:48:07 +02:00
Tristan PILAT 7eecbe3745 Replace ps for pgrep to list evobackup child procs
The command being used to identify evobackup child processes isn't
supported on OpenBSD. The pgrep command is supported on both Linux and
OpenBSD.
2019-09-05 11:41:56 +02:00
Jérémy Lecour 04296895da exclude drbd disks from list 2019-09-05 11:15:25 +02:00
Jérémy Lecour e2156ad41a Fix zzz_evobackup for fdisk command 2019-09-04 13:16:09 +02:00
Jérémy Lecour 35f3434237 Use lsblk to find actual disks 2019-09-03 10:26:38 +02:00
Jérémy Lecour d7b221796e 30 secondes suffisent par défaut 2019-08-23 14:26:48 +02:00
Jérémy Lecour 55e9c0dd63 Tasks switch are configurable from envirnoment variables too. 2019-08-23 12:05:22 +02:00
Jérémy Lecour 24481ca37e Same timeout for Rsync than SSH 2019-08-23 12:04:57 +02:00
Jérémy Lecour 242153b472 Make local and sync tasks skipable. 2019-08-22 14:50:20 +02:00
Jérémy Lecour 6ede66fa5c Use printf instead of echo where relevant 2019-08-22 13:26:18 +02:00
Jérémy Lecour c2cbcb23b4 Print SSH connection errors only if no server is available. 2019-08-22 13:25:45 +02:00
Jérémy Lecour 075f35e1a0 Merge branch 'variable-for-log-and-pidfile' of evolix/evobackup into master 2019-08-22 10:38:23 +02:00
Benoît S c3e9614dbb Adding LOGFILE variable
This is way better than hardcoding log file path.
2019-07-10 14:30:18 +02:00
Jérémy Lecour aa97d3ea88 fix partitions list
No need to look for all partitions, only disks are needed.
2019-06-24 16:36:36 +02:00
Jérémy Lecour d0afc0089c zzz_evobackup: better disks detection 2019-06-11 11:26:31 +02:00
Victor LABORIE 3d3e235ecc Make partitions dump by default on Linux 2019-06-05 11:49:18 +02:00
Jérémy Lecour e174f24b16 Merge branch 'ssh-timeout' of evolix/evobackup into master 2019-06-03 15:32:23 +02:00
Jérémy Lecour 607333d120 Merge branch 'log-server-name' of evolix/evobackup into master 2019-06-03 15:31:55 +02:00
Jérémy Lecour f9c9ab6113 zzz_evobackup: add rsync server in logfile 2019-06-03 15:28:35 +02:00
Jérémy Lecour a4ae0b84ed zzz_evobackup : SSH timeout at 60 seconds by default 2019-06-03 15:13:30 +02:00
Jérémy Lecour 25d87b5f86 Merge branch 'netstat-ss' of evolix/evobackup into master 2019-04-25 13:28:38 +02:00
Jérémy Lecour ad82cc7b7a replace netstat by ss on Linux 2019-04-25 13:27:57 +02:00
Jérémy Lecour 7376e52de2 Merge branch 'check-incs' of evolix/evobackup into master 2019-04-25 11:42:59 +02:00
Jérémy Lecour 93f55bfbb8 Merge branch 'cosmetic-changes' of evolix/evobackup into master 2019-04-25 11:39:37 +02:00
Jérémy Lecour ead3cc5678 extract date variable 2019-04-08 11:09:11 +02:00
Jérémy Lecour 02a83c1a76 Remove the leading 0 from the date output 2019-04-08 10:55:41 +02:00
Jérémy Lecour 5719e2b028 Add quotes and braces around variables 2019-04-03 20:57:18 +02:00
Jérémy Lecour 7ddabb23ca Extract a LOCAL_BACKUP_DIR variable 2019-04-03 20:52:36 +02:00
Jérémy Lecour 933b0c6842 Merge branch 'multi-servers-fallback' of evolix/evobackup into master 2019-04-03 11:54:44 +02:00
Jérémy Lecour 305655faa6 revert some quotes and braces 2019-04-01 22:16:13 +02:00
Jérémy Lecour c8e7977b27 revert variable extraction 2019-04-01 14:38:48 +02:00
Jérémy Lecour c82e77f6ee Add documentation comments to test_server and pick_server functions 2019-04-01 14:37:57 +02:00
Jérémy Lecour d741041e4c give SSH more time before failing 2019-04-01 14:23:26 +02:00
Jérémy Lecour ab3ed48f22 don't quote this vaiable ; it's a list ! 2019-03-31 22:09:53 +02:00
Jérémy Lecour abbb20e5d4 shorter lines for section titles 2019-03-31 21:59:59 +02:00
Jérémy Lecour 92d6b8af87 more braces and quotes 2019-03-31 21:58:01 +02:00
Jérémy Lecour dac06e0858 message in english 2019-03-31 21:57:46 +02:00
Jérémy Lecour e852827d9a reorganize sections or the script 2019-03-31 21:53:07 +02:00
Jérémy Lecour 34476ac7c7 whitespaces 2019-03-31 21:32:09 +02:00
Jérémy Lecour 1376771e83 shellcheck fixes 2019-03-31 21:30:07 +02:00
Jérémy Lecour b1f46bc866 Add braces around variables 2019-03-31 21:27:10 +02:00
Jérémy Lecour ab57f64d93 Extract a LOCAL_BACKUP_DIR variable 2019-03-31 21:26:52 +02:00
Jérémy Lecour b5f1e13685 Add logic to have multiple available servers
SERVERS contains 1 or more servers to send backup files to.
Each day a primary backup server is chosen.
If it's not available the script falls back to the next server, and the 
next…
2019-03-31 21:25:33 +02:00
Jérémy Lecour 3300c3df60 Add a check-incs.sh script 2019-03-29 18:20:46 +01:00
Victor Laborie 6f8217001e Merge branch 'add-NODE-in-default-config-file' of evolix/evobackup into master 2019-03-19 18:01:33 +01:00
Benoît S. 07f324bc7c bkctld.conf: Add NODE by default 2019-03-18 16:50:06 +01:00
Victor LABORIE ae883e8ed0 Use mktemp for keepfile and rm it after usage (Fix #9) 2019-02-18 11:32:28 +01:00
Victor Laborie 0044d6ed4b Merge branch 'use-mdoc' of evolix/evobackup into master 2019-01-29 16:53:11 +01:00