librelad 94c9e83c42 feat(backup): container-side capture of private app files
Reads files the backup user can't see from the host (container-owned, e.g.
Nextcloud's www-data data dir) by streaming them out THROUGH the container
(docker exec tar) — no host root, no host read perms, works rooted + rootless.
Extracts to staging as plain files so restic keeps full dedup + per-file
restore (not a piped tar blob); the live path is excluded from the snapshot.
Restore streams the staging copy back through a throwaway in-namespace
container that recreates the tree with the app's uid:gid.

Declared via a libreportal.backup.files compose label; Nextcloud (html, 33:33)
is the first to use it. Live capture failure falls back to stop-snapshot-start.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-23 18:15:53 +01:00

54 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/files/backup_files.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"
)