backup docker script

docker compose backup serverhost
This commit is contained in:
lucas committed 2026-10-01 14:07:31 +00:00
1 parent 3c69b2c915
commit 72fe77f040
6 files changed
+301

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#!/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)