Files
lucas 72fe77f040 backup docker script
docker compose backup serverhost
2026-10-01 14:07:31 +00:00

7 lines
235 B
Bash
Executable File

#!/bin/bash
cd /docker
find . -maxdepth 3 -type f \
\( -name "*.yaml" -o -name "*.yml" -o -name "*.conf" -o -name "*.sh" \) \
-print0 2>/dev/null |
rsync -aR --files-from=- --from0 ./ /home/lucas/scripts/docker_compose/$(hostname)