Commit graph

60 commits

Author SHA1 Message Date
Jérémy Lecour e9cf39ad40 remove PING_BEFORE_SSH 2023-01-13 11:26:41 +01:00
Jérémy Lecour 22ba5ed823 declare bash arrays 2023-01-13 11:26:19 +01:00
Jérémy Lecour 7f4cb78826 shellcheck 2023-01-13 11:17:20 +01:00
Jérémy Lecour 7199ffc64f Add PING_BEFORE_SSH (enabled by default) 2023-01-09 11:45:39 +01:00
Jérémy Lecour 4ff1bc5976 better comments 2023-01-06 16:59:12 +01:00
Jérémy Lecour aeebb815c8 Use bash array for temp_files 2023-01-06 14:45:02 +01:00
Jérémy Lecour c2d08ed80e create and sync mtree files 2023-01-06 14:34:51 +01:00
Jérémy Lecour c3c98b64f2 Use bash array for list of paths to include 2023-01-06 14:33:20 +01:00
Jérémy Lecour 053c339e8f better comments 2023-01-05 13:45:17 +01:00
Jérémy Lecour d75d75cd4c Use an array to build the rsync commands, instead of eval 2023-01-04 23:32:12 +01:00
Jérémy Lecour 58f41963a7 store temp_files in TMPDIR instead of current directory 2023-01-04 14:51:10 +01:00
Jérémy Lecour f6c8d966d7 shellcheck 2023-01-04 14:20:12 +01:00
Jérémy Lecour 82df2b38e9 move variables around to simplify common usage 2023-01-04 14:19:48 +01:00
Jérémy Lecour f5660b1e46 doc 2023-01-04 12:34:17 +01:00
Jérémy Lecour 8d4105cf31 sync only the Rsync stats alongside the canary file 2023-01-04 11:34:42 +01:00
Jérémy Lecour a957498b6f push rsync log file with the canary file 2023-01-04 09:40:26 +01:00
Jérémy Lecour 17c2868fee shellcheck fixes 2023-01-04 09:20:41 +01:00
Jérémy Lecour c3f65a1722 extract variables 2023-01-04 09:19:47 +01:00
Jérémy Lecour 9ee784509d add whitespace to align log outputs with start/stop 2023-01-04 09:16:00 +01:00
Jérémy Lecour b6d50cc921 remove trailing slash in dump_dir 2023-01-04 09:15:26 +01:00
Jérémy Lecour 0235906546 fix dump_file 2023-01-04 09:13:46 +01:00
Jérémy Lecour b1c5b693ee Output error file if size is not null 2023-01-04 09:13:22 +01:00
Jérémy Lecour 65ba8695ad Add documentation comments 2023-01-04 07:45:47 +01:00
Jérémy Lecour c6a89cbc32 Reorder functions 2023-01-04 07:35:26 +01:00
Jérémy Lecour c368c9b11a typo 2023-01-03 23:50:34 +01:00
Jérémy Lecour 910a7398fb error codes 2023-01-03 23:50:23 +01:00
Jérémy Lecour e3c7da32a9 Add logs and error control 2023-01-03 23:30:50 +01:00
Jérémy Lecour 4496ea883a explicit canary file 2023-01-03 09:59:13 +01:00
Jérémy Lecour cb5c842979 Extract functions for each local task
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-01-01 23:04:44 +01:00
Jérémy Lecour 05a62e17b5 client: Release 22.12
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2022-12-27 13:37:48 +01:00
Jérémy Lecour 8babc64e0d client: log line with more details
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
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
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2022-12-27 11:56:07 +01:00
Jérémy Lecour ef744f77cf client: No more fallback if dump-server-state is missing
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
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
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2022-12-27 10:46:53 +01:00
Jérémy Lecour ed0645c9d2 remodel how we build the rsync command (#63)
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
* 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: #63
2022-12-27 10:43:39 +01:00
Jérémy Lecour 140a498e28 client: Only one loop for all redis instances
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2022-12-27 10:38:55 +01:00
Alexis Ben Miloud--Josselin 6e0ab85c6b client: ignore errors when listing instances
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2022-12-13 09:53:10 +01:00
Alexis Ben Miloud--Josselin e3a969f3e2 client: replace rm ** by find -delete
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good
** 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
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good
2022-12-08 14:09:37 +01:00
Alexis Ben Miloud--Josselin 2b83cd71bc postgresql: change wd before dump
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good
2022-11-14 11:29:43 +01:00
Jérémy Lecour 88a7907fd3 typo
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good
continuous-integration/drone/tag Build is passing
2022-10-28 15:48:59 +02:00
Jérémy Lecour 18e0563377 quotes
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good
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
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good
2022-10-13 09:09:01 +02:00
Alexis Ben Miloud--Josselin c80881debf Exclure datadir MongoDB
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good
2022-08-24 14:40:30 +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
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-20 17:52:26 +02:00
Jérémy Lecour ec638ecb3b move from sh to bash
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-15 14:19:50 +02:00