Brice Waegeneire
21533c6fb9
client: Write temporary files in /tmp
...
By default "mktemp" creates a temporary file in the current working directory,
which in the context of Debian's cron is /. To avoid littering /, we add the
option "--tmpdir" that use $TMPDIR or /tmp instead.
2024-03-22 10:05:10 +01:00
Brice Waegeneire
9510546d48
client: Correctly clean up temporary files
...
The function "build_rsync_main_cmd" is called in a subshell, so it can't
effectively modify it's parent variable "temp_files". To correctly cleanup
those temporary files, we do it when this specific function exits.
2024-03-22 09:56:03 +01:00
Jérémy Lecour
491c839014
Add note for includes/excludes brace expansion
2023-12-28 15:29:39 +01:00
Bruno TATU
4cd1554780
Correction url dans README.md
2023-10-27 11:30:53 +02:00
William Hirigoyen
981f5118ce
Ajout exclusion /var/lib/amavis/virusmails
2023-06-15 11:18:49 +02:00
William Hirigoyen
4807dfbc99
Fix missing dump.rdb in Redis dump compression, which caused compression fail.
2023-04-19 17:46:34 +02:00
William Hirigoyen
fd9bb57f8b
#71538 : fix Redis dump list in case directory is a symlink
2023-04-17 17:13:23 +02:00
Alexis Ben Miloud--Josselin
d62455cd1a
Compress Redis dump
2023-04-04 15:05:30 +02:00
Bruno Tatu
72f5900cf3
On backup les données dans les bases
2023-03-30 16:37:36 +02:00
Jérémy Lecour
05a62e17b5
client: Release 22.12
2022-12-27 13:37:48 +01:00
Jérémy Lecour
8babc64e0d
client: log line with more details
2022-12-27 13:36:24 +01:00
Jérémy Lecour
aa7366ce2e
client: separate Rsync for the canary file if the main Rsync has finished without errors
2022-12-27 11:56:07 +01:00
Jérémy Lecour
ef744f77cf
client: No more fallback if dump-server-state is missing
2022-12-27 11:11:02 +01:00
Jérémy Lecour
80426c9ba9
whitespaces
2022-12-27 11:09:37 +01:00
Jérémy Lecour
b34ee2c3dc
client: use long options for readability
2022-12-27 11:09:11 +01:00
Jérémy Lecour
94b470770f
client: use sub shells instead of moving around
2022-12-27 10:46:53 +01:00
Jérémy Lecour
ed0645c9d2
remodel how we build the rsync command ( #63 )
...
* use a log file for rsync
* build the command argument by argument, without backslashes
* move excludes into a file
Co-authored-by: Jeremy Lecour <jlecour@evolix.fr>
Reviewed-on: evolix/evobackup#63
2022-12-27 10:43:39 +01:00
Jérémy Lecour
140a498e28
client: Only one loop for all redis instances
2022-12-27 10:38:55 +01:00
Alexis Ben Miloud--Josselin
6e0ab85c6b
client: ignore errors when listing instances
2022-12-13 09:53:10 +01:00
Alexis Ben Miloud--Josselin
e3a969f3e2
client: replace rm ** by find -delete
...
** has no particular meaning in bash unless shopt globstar is
set (it isn't by default).
2022-12-12 16:06:58 +01:00
Mathieu Trossevin
1e35aaa4db
Corrige messages d'erreurs intempestif
2022-12-08 14:09:37 +01:00
Alexis Ben Miloud--Josselin
2b83cd71bc
postgresql: change wd before dump
2022-11-14 11:29:43 +01:00
Jérémy Lecour
88a7907fd3
typo
2022-10-28 15:48:59 +02:00
Jérémy Lecour
18e0563377
quotes
2022-10-28 14:02:26 +02:00
Jérémy Lecour
e921c92cae
More explicit warning for rsync comments/spaces
2022-10-27 18:48:35 +02:00
Jérémy Lecour
f683691853
client: tolerate absence of mtr or traceroute
2022-10-13 09:09:01 +02:00
Alexis Ben Miloud--Josselin
c80881debf
Exclure datadir MongoDB
2022-08-24 14:40:30 +02:00
David Prevot
6c6b64ed34
Update client changelog
2022-06-28 16:26:32 +02:00
David Prevot
604317d4a7
client: tfix (comment)
2022-06-28 16:16:04 +02:00
Brice Waegeneire
1bc62d81cd
client: fix pt-show-grants error path
2022-06-20 17:52:26 +02:00
Jérémy Lecour
ec638ecb3b
move from sh to bash
2022-06-15 14:19:50 +02:00
Jérémy Dubois
0d48a8eec3
update-evobackup-canary : do not use GNU date, for it to be compatible with OpenBSD
2022-06-09 16:16:47 +02:00
Alexis Ben Miloud--Josselin
328763380f
[elasticsearch] Écrire la sortie de curl dans log normal
2022-06-07 10:38:04 +02:00
Jérémy Lecour
417876cbba
zzz_evobackup: replace rsync option --verbose by --itemize-changes
2022-06-02 15:53:00 +02:00
Jérémy Lecour
6c2ba1bc79
zzz_evobackup: do not use rsync compression
2022-06-02 14:56:57 +02:00
Jérémy Lecour
400be16e8a
Ajout de liens vers les docs de la partie "client"
2022-06-01 10:14:48 +02:00
Jérémy Lecour
7faedbeab1
remove RSYNC_LOGFILE
2022-06-01 09:48:17 +02:00
Jérémy Lecour
86c01a1075
WIP: extract code into functions
2022-06-01 09:48:17 +02:00
Jérémy Dubois
c621324845
Use --dump-dir instead of --backup-dir for OpenBSD too
2022-05-18 09:51:34 +02:00
Jérémy Lecour
ed183fb854
Add canary to zzz_evobackup
2022-05-05 11:24:45 +02:00
Jérémy Lecour
ff02816538
Add AGPL License to client script
2022-05-02 10:27:07 +02:00
Ludovic Poujol
c01e6d11cd
Use --dump-dir instead of --backup-dir to supress dump-server-state warning
2022-04-20 09:51:44 +02:00
Jérémy Dubois
1efca713c0
zzz_evobackup: Make start_time and stop_time compatible with OpenBSD
2022-04-13 17:08:38 +02:00
Jérémy Lecour
5cbc2cbf42
Split client and server parts
2022-04-03 11:28:59 +02:00