Commit graph

158 commits

Author SHA1 Message Date
Jérémy Lecour 8b72415669 variable plus explicite 2022-01-27 13:57:56 +01:00
Jérémy Lecour 0705625dbd fix date syntax 2022-01-27 13:55:14 +01:00
Jérémy Lecour 15c9682be1 zzz_evobackup: use "backup-server-state script if available 2022-01-27 12:08:00 +01:00
Jérémy Lecour fa8d8cfd84 zzz_evobackup: log version 2022-01-27 12:06:39 +01:00
Jérémy Lecour aba4a9f992 amélioration du log d'erreurs SSH 2022-01-26 12:00:07 +01:00
Jérémy Lecour 82e111adc8 Reorganize logging 2022-01-26 11:46:41 +01:00
Jérémy Lecour 45f057bce8 /var/log is no longer excluded 2022-01-25 19:01:54 +01:00
Jérémy Lecour 3042b72a78 evobackup: store log file in /var/log/evobackup/ 2022-01-25 17:22:18 +01:00
William Hirigoyen (Evolix) e6d8f73b42 Add exclusions LXC tmp zzz_evobackup 2021-12-24 11:36:55 +01:00
William Hirigoyen (Evolix) 0aa233d939 Exclude /var/tmp from backups in zzz_evobackup 2021-11-17 15:34:39 +01:00
Ludovic Poujol 0565ad831a Mise à jour de 'zzz_evobackup'
Change order of sql dumps commands
2021-08-17 13:44:30 +02:00
Eric Morino 31fb33adc4 Add compressed PostgreSQL dump for each databases 2021-06-22 15:36:12 +02:00
Jérémy Lecour 0090595d40 zzz_evobackup: commands to purge previous dumps 2021-06-09 17:16:26 +02:00
Jérémy Dubois 582e8e0c9c Use of fstat instead of netstat on OpenBSD
Allow to know which PID is listening to a port
2021-05-25 20:55:00 +02:00
Jérémy Lecour afb7427e40 exclusion de 'lxc/*/rootfs/var/lib/php/sessions' 2021-05-06 10:23:50 +02:00
Jérémy Lecour 68a7da6b88 evobackup: log/pid files named after program's name 2021-02-08 11:32:12 +01:00
Jérémy Dubois 53a1309d69 zzz_evobackup: exclude OpenBSD mails folder 2021-01-07 09:47:27 +01:00
Tristan PILAT da8451e649 zzz_evobackup: add 2 slapcat examples for separate config/data backups 2020-12-04 10:47:44 +01:00
Jérémy Dubois 34c06bfc9a zzz_evobackup: exclude munin tmp files for OpenBSD 2020-11-16 11:22:18 +01:00
Jérémy Lecour 88899fb0fe fix bad destination directory for mysql backups 2020-09-25 15:53:13 +02:00
Jérémy Lecour 9f5a4066ee zzz_evobackup: exclude LXC rootfs 2020-09-15 14:08:20 +02:00
Jérémy Lecour af68d9951b zzz_evobackup: reorder rsync excludes 2020-09-15 10:14:04 +02:00
Jérémy Lecour 69146f1f9f remove /srv from default directory list 2020-09-01 18:41:16 +02:00
Jérémy Lecour 1f29162da4 evobackup script timeout defaults to 90 seconds 2020-07-22 23:00:27 +02:00
Jérémy Lecour 3a6e21dce8 use ${LOCAL_BACKUP_DIR}/mysql/ instead of /home/mysqldump/ 2020-07-16 22:20:05 +02:00
Jérémy Lecour 251d0c14d6 zzz_evobackup: add template for multiple redis instances 2020-07-16 22:16:34 +02:00
Bruno TATU 049bdb9216 add --relative to rsync from zzz_evobackup 2020-06-09 10:59:23 +02:00
Patrick Marchand ec994f7e2c Removed a ignore shellcheck comment in zzz_evobackup and fix warning
Since only one PID can be in the PID file, we will never have more than one, we can thus easily quote the variable and remove the shellcheck ignore.
2020-04-20 12:12:51 -04:00
Patrick Marchand d2b6094f7f Fix quoting and escaping shellcheck errors
shellcheck was still complaining about a few SC1117 and SC2086
warnings. I ignored those that did not seem necessary and fixed the
rest. The less linter noise the better.
2020-04-15 14:46:14 -04:00
Jérémy Lecour 731be98193 Add pt-show-grants to dump MySQL grants 2020-04-15 15:49:41 +02:00
Jérémy Dubois 1fb0af4255 /srv is not on bsd systems 2020-03-25 09:31:44 +01:00
Jérémy Dubois e043118a78 Dump partitions by default on OpenBSD 2020-03-20 11:56:52 +01:00
Jérémy Lecour 81a5883d72 Log SSH errors also to logfile 2020-03-19 07:35:01 +01:00
Jérémy Lecour 34443b18bd Fail on unassigned variables 2020-03-19 07:34:35 +01:00
Jérémy Lecour 6d7072234d improve comments readability 2020-02-14 10:52:54 +01:00
Jérémy Lecour 124af075ae improve partitions dump 2020-02-13 14:34:49 +01:00
Jérémy Lecour 48ca7cc8e4 add a schema-only dump for MySQL databases 2020-02-13 14:34:09 +01:00
Jérémy Lecour 832a219f0b "kill -O" doesn't exist, "kill -0" does! 2019-11-12 14:49:16 +01:00
Jérémy Lecour da40afa99c Add findmnt(8) output in the backup 2019-10-29 17:30:47 +01:00
Jérémy Lecour 4eb5e61ff0 improve iptables backup readability 2019-10-18 11:53:29 +02:00
Jérémy Lecour 055ee8dd90 kill process if really exists, otherwise remove the pid file 2019-09-26 09:32:51 +02:00
Gregory Colpart 2023724370 Add dump iptables / pf 2019-09-25 15:11:05 +02:00
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