Commit graph

144 commits

Author SHA1 Message Date
Jérémy Lecour a5b553ab99 dump: global/per-base schema along with data 2023-03-23 08:47:37 +01:00
Jérémy Lecour 81177d63f5 remov dump_mysql_meta 2023-03-23 07:52:00 +01:00
Jérémy Lecour 0a485b3054 dump.sh reorganize backup directories, again 2023-03-23 07:48:41 +01:00
Jérémy Lecour 6f755b94ba dump.sh reorganize backup directories 2023-03-22 22:06:24 +01:00
Jérémy Lecour 5ac990473e remove monolithic script
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-03-22 14:19:29 +01:00
Jérémy Lecour a6573c6db3 changelog
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-03-22 14:17:42 +01:00
Jérémy Lecour ea054f314c Add some comments 2023-03-22 14:17:10 +01:00
Jérémy Lecour 70e541dd6d zzz_evobackup.sh: LIBDIR="/usr/local/lib/evobackup"
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-03-22 14:11:03 +01:00
Jérémy Lecour 5aeba28d5c utilities.sh: fix line count 2023-03-22 14:10:27 +01:00
Jérémy Lecour 4475ee9af8 dump.sh: improve options handling
* default values,
* reset variable each time
* option masterdata seulement si présente
2023-03-22 14:10:11 +01:00
Jérémy Lecour feafe01692 Delete error directories recursively
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-03-08 09:22:28 +01:00
Jérémy Lecour 1fa1eb7793 Delete README containing dead links 2023-02-27 14:56:45 +01:00
Jérémy Lecour 50f81f2716 Add options for dump functions
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-02-08 22:53:28 +01:00
Jérémy Lecour 2e9eb4a946 variable for script path 2023-02-08 22:51:38 +01:00
Jérémy Lecour 149b5d0e8d comments
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-01-28 21:14:22 +01:00
Jérémy Lecour d532ac83da client: declare variable earlier
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-01-28 16:20:51 +01:00
Jérémy Lecour 767d509390 deploy evobackup beta with configured MAIL and LIBDIR 2023-01-28 16:20:36 +01:00
Jérémy Lecour c5d82eda68 deployment playbook
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-01-16 14:26:15 +01:00
Jérémy Lecour 0491598c1f hook functions 2023-01-16 14:26:04 +01:00
Jérémy Lecour 2bf4d0dd0f mtree includes must be directories 2023-01-16 14:25:31 +01:00
Jérémy Lecour ed7f9e79ae default value 2023-01-16 13:16:19 +01:00
Jérémy Lecour 7784ba5548 load libraries just before calling main
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-01-16 09:58:17 +01:00
Jérémy Lecour 2ea9614e3c WIP: separate lib and custom code
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
2023-01-15 22:56:03 +01:00
Jérémy Lecour f9aa722ac9 log errors as they happen 2023-01-14 18:51:37 +01:00
Jérémy Lecour 86f0046797 send rsync full log file if it exists 2023-01-13 18:17:54 +01:00
Jérémy Lecour 518fa9d1e7 Store errors in dedicated and persistent directories 2023-01-13 17:17:56 +01:00
Jérémy Lecour 27568820bf revert "declare -a" on array variables 2023-01-13 17:15:33 +01:00
Jérémy Lecour 22814bc5d7 Ldap dump file name 2023-01-13 17:13:06 +01:00
Jérémy Lecour 9665a4ef00 commands arguments (long options and whitespaces 2023-01-13 16:58:24 +01:00
Jérémy Lecour 46c012f5fc skip mtree if disabled or missing 2023-01-13 13:30:57 +01:00
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 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
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
Jérémy Dubois 0d48a8eec3 update-evobackup-canary : do not use GNU date, for it to be compatible with OpenBSD
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-09 16:16:47 +02:00
Alexis Ben Miloud--Josselin 328763380f [elasticsearch] Écrire la sortie de curl dans log normal
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-07 10:38:04 +02:00
Jérémy Lecour 417876cbba zzz_evobackup: replace rsync option --verbose by --itemize-changes
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-02 15:53:00 +02:00
Jérémy Lecour 6c2ba1bc79 zzz_evobackup: do not use rsync compression
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-02 14:56:57 +02:00
Jérémy Lecour 400be16e8a Ajout de liens vers les docs de la partie "client"
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-01 10:14:48 +02:00
Jérémy Lecour 7faedbeab1 remove RSYNC_LOGFILE
All checks were successful
continuous-integration/drone/push Build is passing
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
All checks were successful
continuous-integration/drone/push Build is passing
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