Commit graph

166 commits

Author SHA1 Message Date
Jérémy Lecour e83f94eaad make SSH_CONNECT_TIMEOUT configurable from outside 2019-09-23 18:06:27 +02:00
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
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 ad82cc7b7a replace netstat by ss on Linux 2019-04-25 13:27:57 +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 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
Benoît S. 2b911cff1d Break line after every contributor name 2019-01-21 14:44:30 +01:00
Benoît S. c25db32a45 Break line for contributors header infos 2019-01-21 14:42:02 +01:00
Patrick Marchand 720c479e73 Improved documentation for example script
Added the description of variables to change into the zzz_evobackup
script comments and updated the path to the repository.
2019-01-02 12:13:38 -05:00
Alexis Ben Miloud--Josselin eb85dc6175 Add clusterized elasticsearch snapshots 2018-11-21 14:32:38 +01:00
Gregory Colpart 81e79b1aaa add packages available for restauration 2018-08-25 00:02:00 +02:00
Gregory Colpart 83155a8de4 unlimited width for ps command 2018-08-25 00:00:31 +02:00
Gregory Colpart cb186dc775 Force chmod 700 for all mkdir 2018-08-20 23:12:36 +02:00
Benoît S. f369615a2f Exclude the sys database from mysql dump 2018-08-14 14:46:03 +02:00
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
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
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
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
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
Daniel Jakots 5819a00ada zzz_evobackup is not part of the documentation... 2017-11-13 16:28:34 -05:00
Victor LABORIE d663f4591d Refactoring 2016-12-20 11:59:18 +01:00
Victor LABORIE 6a4af139ba Add RabbitMQ example. 2016-11-09 12:10:10 +01:00
Benoît S. 29cd250c73 Updated mongodb example. 2016-08-18 18:01:07 +02:00
Gregory Colpart 11e73103d0 new default routes (more stable) 2016-05-10 00:34:27 +02:00
Benoît S. a2bdfc106b Exclude /var/lib/munin/*tmp* in place of /var/lib/munin/*.tmp
Better match for files like:
  file has vanished: "/var/lib/munin/graphs.tmp.3006"
2016-04-21 11:59:51 +02:00
Gregory Colpart 8aab335168 Add command to backup megacli config (RAID hw config) 2015-11-25 17:16:46 +01:00
Gregory Colpart ee57c20134 retab 2015-11-24 19:52:05 +01:00
Gregory Colpart e924394230 force umask 2015-11-24 19:50:51 +01:00
Tristan PILAT cbe6af8ce7 Making zzz_evobackup more BSD compatible 2015-11-12 17:54:58 +01:00
Gregory Colpart 1b02ba0a70 - use only english in comments
- improve comments
2015-08-12 13:18:47 +02:00
Benoît S. aaa0910e9b chmod +x for executables. 2015-07-02 15:21:29 +02:00
Benoît S. 62d397386d Add --exclude "/var/lib/clamav/*.tmp" 2015-02-06 11:39:27 +01:00
Gregory Colpart e84cc25c5c Set LANG=C 2015-02-03 01:06:09 +01:00
Benoît S. bd48826956 Exclude /home/mysqltmp 2015-01-16 11:38:48 +01:00
Benoît S. 0a3ab673cc Added --hex-blob to mysqldump. 2014-12-30 10:08:08 +01:00
Gregory Colpart 33ab2d2f74 Improve exceptions 2014-12-29 18:25:45 +01:00
Gregory Colpart 4dafd8bc62 add exception by default 2014-12-22 18:35:35 +01:00
Gregory Colpart a27c2e79c2 Merge improvements from Benoit (part 2) 2014-06-19 02:43:36 +02:00
Gregory Colpart b7a5efa462 support symlink without modification 2014-06-17 19:17:31 +02:00
Benoît S. 6eea9aa47e Exclude database performance_schema for MySQL dumps. 2014-01-10 14:29:05 +01:00
Benoît S. 75f256b8e7 Added --events for mysqldump. 2014-01-10 11:07:05 +01:00
Benoît S. b48b2a58fa Comment of ElasticSearch dump.
No need to be activated by default...
2014-01-09 17:00:51 +01:00
Benoît S. 3ca2623d70 Added a way of backuping ElasticSearch 2013-11-15 12:16:50 +01:00
Benoît S. 174c46aea8 Adding a loop when dumping routes. 2013-09-03 15:01:55 +02:00
Benoît S. 92f6db4439 Fix a bug in the way of killing evobackup.
The process is launched by "run-parts /etc/cron.daily". When you kill the
process, run-parts is not informed and the process go in Z state (and rsync
continue to work!). When another run-parts is launched the part wich kill a
process if already launched fail.

This fix this particular bug.
2013-08-05 17:46:18 +02:00
Gregory Colpart 88fb702b46 Add netstat dump 2013-06-30 13:18:54 +02:00
Romain Dessort 6bf536dc1e Remove exit 0 if evobackup already running. 2013-05-03 15:41:54 +02:00
Romain Dessort 329617461e Merge branch 'master' of ssh://git.evolix.org/git/evolinux/evobackup 2013-05-03 15:27:45 +02:00
Romain Dessort 4fe816827f Kill evobackup process if it was already running, instead of simply send
an email.
2013-05-03 15:25:50 +02:00
Gregory Colpart 516eece91c Merge branch 'master' of ssh://git.evolix.org/git/evolinux/evobackup 2013-04-12 18:05:03 +02:00
Gregory Colpart 606ff2923b Add --partial option to rsync ! 2013-04-12 18:04:32 +02:00
Gregory Colpart 1a54bb92e3 Error on mysqldump option 2013-01-28 00:18:11 +01:00
Romain Dessort fc39d0c186 Fix argument order in mysqldump commandline
--defaults-extra-file must be the first option.
2012-11-05 11:47:14 +01:00
Gregory Colpart 7453e90313 Merge branch 'master' of ssh://git.evolix.org/git/evolinux/evobackup 2012-10-27 18:27:49 +02:00
Gregory Colpart f66d088636 backup Redis 2012-10-27 18:27:18 +02:00
Benoît S. 1c3390b398 Adding --force parameter to mysqldump commands. This permit to continue even if mysqldump fail (i.e corrupt table). 2012-07-30 14:55:09 +02:00
Benoît S. 1f60b99e33 Add a new way of backuping MySQL databases. Each databases go in a separate .sql.gz file. 2012-07-30 14:52:10 +02:00