Adds a logical-dump path so apps with a database can be backed up with zero downtime and full consistency, instead of stopping the container. - backup_db.sh: dump each declared DB live (mysqldump --single-transaction / pg_dump / sqlite3 .backup), exclude the raw data dir from the snapshot, and replay the dump on restore (pre-start rehydrate for sqlite, post-start load for server engines). - Databases are declared via a 'libreportal.backup.db' compose label so the metadata travels with the app in the snapshot. - New 'auto' strategy (now the default): live where a DB is dumpable or the app is marked live-safe, stop-snapshot-start otherwise. Explicit stop/pause/live remain as overrides. - restic/borg/kopia adapters honour an exclude list on the live path. - Manifest records the resolved per-app strategy and dumped databases. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
53 lines
1.8 KiB
Bash
Executable File
53 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This file is auto-generated by generate_arrays.sh
|
|
# Do not edit manually - run './scripts/source/files/generate_arrays.sh run' to regenerate
|
|
|
|
backup_scripts=(
|
|
"backup/app/backup_app_all.sh"
|
|
"backup/app/backup_app_delete.sh"
|
|
"backup/app/backup_app_hooks.sh"
|
|
"backup/app/backup_app_schedule.sh"
|
|
"backup/app/backup_app_start.sh"
|
|
"backup/app/backup_schedule_all.sh"
|
|
"backup/db/backup_db.sh"
|
|
"backup/engine/backup_ssh.sh"
|
|
"backup/engine/borg_backup.sh"
|
|
"backup/engine/borg_check.sh"
|
|
"backup/engine/borg_env.sh"
|
|
"backup/engine/borg_forget.sh"
|
|
"backup/engine/borg_init.sh"
|
|
"backup/engine/borg_install.sh"
|
|
"backup/engine/borg_restore.sh"
|
|
"backup/engine/borg_snapshots.sh"
|
|
"backup/engine/engine_dispatch.sh"
|
|
"backup/engine/kopia_backup.sh"
|
|
"backup/engine/kopia_check.sh"
|
|
"backup/engine/kopia_env.sh"
|
|
"backup/engine/kopia_forget.sh"
|
|
"backup/engine/kopia_init.sh"
|
|
"backup/engine/kopia_install.sh"
|
|
"backup/engine/kopia_restore.sh"
|
|
"backup/engine/kopia_snapshots.sh"
|
|
"backup/engine/restic_backup.sh"
|
|
"backup/engine/restic_check.sh"
|
|
"backup/engine/restic_dump.sh"
|
|
"backup/engine/restic_env.sh"
|
|
"backup/engine/restic_forget.sh"
|
|
"backup/engine/restic_init.sh"
|
|
"backup/engine/restic_install.sh"
|
|
"backup/engine/restic_restore.sh"
|
|
"backup/engine/restic_snapshots.sh"
|
|
"backup/locations/location_add.sh"
|
|
"backup/locations/location_loader.sh"
|
|
"backup/locations/location_migrate.sh"
|
|
"backup/locations/location_paths.sh"
|
|
"backup/locations/location_remove.sh"
|
|
"backup/locations/location_ssh.sh"
|
|
"backup/manifest/manifest_collect.sh"
|
|
"backup/manifest/manifest_read.sh"
|
|
"backup/manifest/manifest_write.sh"
|
|
"backup/verify/backup_verify.sh"
|
|
|
|
)
|