4af15d9074
fix(restore): allow restoring files from different source volume
...
The file restore command previously assumed that the target volume name
was identical to the volume name used in the backup path. This caused
restores to fail (exit code 2) when restoring data from one volume backup
into a different target volume.
Introduce an optional --source-volume argument for `baudolo-restore files`
to explicitly specify the backup source volume while keeping the target
volume unchanged.
- Default behavior remains fully backward-compatible
- Enables restoring backups from volume A into volume B
- Fixes E2E test scenario restoring into a new volume
Tests:
- Update E2E file restore test to use --source-volume
https://chatgpt.com/share/694ec70f-1d7c-800f-b221-9d22e4b0775e
2025-12-26 18:33:58 +01:00
c30b4865d4
refactor: migrate to src/ package + add DinD-based E2E runner with debug artifacts
...
- Replace legacy standalone scripts with a proper src-layout Python package
(baudolo backup/restore/configure entrypoints via pyproject.toml)
- Remove old scripts/files (backup-docker-to-local.py, recover-docker-from-local.sh,
databases.csv.tpl, Todo.md)
- Add Dockerfile to build the project image for local/E2E usage
- Update Makefile: build image and run E2E via external runner script
- Add scripts/test-e2e.sh:
- start DinD + dedicated network
- recreate DinD data volume (and shared /tmp volume)
- pre-pull helper images (alpine-rsync, alpine)
- load local baudolo:local image into DinD
- run unittest E2E suite inside DinD and abort on first failure
- on failure: dump host+DinD diagnostics and archive shared /tmp into artifacts/
- Add artifacts/ debug outputs produced by failing E2E runs (logs, events, tmp archive)
https://chatgpt.com/share/694ec23f-0794-800f-9a59-8365bc80f435
2025-12-26 18:13:26 +01:00
41910aece2
Optimized entry columns
2025-10-18 09:58:06 +02:00
b6dd624f97
Added install hints to pass install requirements
2025-09-11 20:45:30 +02:00
47828c44db
Use dirval CLI instead of direct Python script reference in backup-docker-to-local.py and declare dirval in requirements.yml
...
Details:
- Replaced python call to directory-validator.py with direct 'dirval' command
- Updated error message accordingly
- Added dirval as dependency in requirements.yml
Conversation: https://chatgpt.com/share/68c31763-6a84-800f-a697-50fa40e9841b
2025-09-11 20:40:21 +02:00
a538e537cb
Added emoji
2025-07-17 00:26:22 +02:00
8f72d61300
Bypass buffer
2025-07-17 00:19:10 +02:00
c754083cec
Added more detailled info to is_image_whitelisted
2025-07-17 00:13:38 +02:00
84d0fd6346
Added more detailled output why stopped
2025-07-17 00:05:44 +02:00
627187cecb
Solved variable bug
2025-07-16 23:41:17 +02:00
978e153723
Changed special instances to database containers for more clarity
2025-07-16 14:50:32 +02:00
2bf2b0798e
Solved bug
2025-07-16 14:47:32 +02:00
8196a0206b
Optimized parameters
2025-07-16 14:43:43 +02:00
c4cbb290b3
Made IMAGES_NO_STOP_REQUIRED obligatoric
2025-07-16 10:55:21 +02:00
2d2376eac8
Implemented new parameters to make it more flexibel for cymais
2025-07-14 18:47:25 +02:00
8c4ae60a6a
Left hint
2025-07-10 22:12:29 +02:00
18d6136de0
Used streaming instead of memory to prevent overflow
2025-07-03 14:37:36 +02:00
3ed89a59a8
Added failure handling for bussy databases
2025-07-03 12:09:44 +02:00
7d3f0a3ae3
Added roles, and stop on failure
2025-07-03 12:06:38 +02:00
5762754ed7
Added restore_backup.py restore_postgres_databases.py
2025-07-03 11:59:40 +02:00
556cb17433
Implemented check for empty database name
2025-04-21 10:52:06 +02:00
2e2c8131c4
Implemented fallback_pg_dumpall
2025-04-19 00:21:45 +02:00
5005d577cc
Update README.md
2025-04-19 00:04:29 +02:00
327b666237
Removed setup instructions, because they are managed now by pkgmgr
2025-04-01 13:20:47 +02:00
a7c6fa861a
Moved requirements from cymais to this role
2025-04-01 13:18:30 +02:00
f6c57be1b7
Added Funding
2025-03-12 20:52:47 +01:00
9d990a728d
Update README.md
2025-03-12 11:14:40 +01:00
a355f34e6e
Update README.md
2025-03-04 22:35:22 +01:00
f847c8dd74
Merge branch 'main' of github.com:kevinveenbirkenbach/docker-volume-backup
2024-12-03 11:19:40 +01:00
3e225b0317
Added hard restart for mailu
2024-12-03 11:19:12 +01:00
6537626d77
optimized code formating
2024-02-05 19:18:54 +01:00
da7e5cc9be
changed loading of directory-validator
2024-02-05 19:16:09 +01:00
69a1ea30aa
Implemented stamp function
2024-01-29 20:04:21 +01:00
e9588b0e31
Added exception catching
2024-01-14 01:46:47 +01:00
42566815c4
solved start bug
2024-01-14 01:25:54 +01:00
8bc2b068ff
Added condition to stop containers
2024-01-12 18:58:02 +01:00
25d428fc9c
Removed skipping of unused volumes
2024-01-12 18:42:26 +01:00
0077efa63c
Implemented stop on first error
2024-01-12 16:20:17 +01:00
9d8e80f793
Implemented better parameter check
2024-01-12 15:42:51 +01:00
d2b699c271
Implemented postgres recovery
2024-01-12 11:47:46 +01:00
b7dcb17fd5
Optimized logic for central databases
2024-01-11 20:51:55 +01:00
7f6f5f6dc8
Optimized logic for central databases
2024-01-11 20:47:57 +01:00
75d48fb3e9
Removed unnecessary warning
2024-01-11 20:40:07 +01:00
bb3d20c424
Solved path comparisment bug
2024-01-11 16:21:39 +01:00
f057104a65
Solved order bug
2024-01-11 15:56:34 +01:00
7fe1886ff9
Solved trailing spaces bug
2024-01-11 12:20:38 +01:00
35e28f31d2
Changed logic so that volume is not created for db recoveries
2024-01-11 11:04:03 +01:00
15a1f17184
Changed logic so that volume is not created for db recoveries
2024-01-11 10:58:35 +01:00
ace1a70488
Optimized database recovery function
2024-01-11 03:04:13 +01:00
d537393da8
Solved array bug
2024-01-09 13:18:17 +01:00