backup docker script
docker compose backup serverhost
This commit is contained in:
1 parent
3c69b2c915
commit
72fe77f040
6 files changed
+301
No files matched your search
Executable
+6
@@ -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)
|
||||
Reference in new issue
Block a user