fix(backup_docker): add check for exports file

This commit is contained in:
lucas committed 2026-11-16 19:50:35 +01:00
1 parent 54bc36037a
commit 1fb97c2097
1 file changed
+2
+2
View File
@@ -4,4 +4,6 @@ find . -maxdepth 3 -type f \( -name "*.yaml" -o -name "*.yml" -o -name "*.conf"
-print0 2>/dev/null | rsync -aR --files-from=- --from0 ./ /home/lucas/scripts/docker_compose/$(hostname)
crontab -l > /home/lucas/scripts/docker_compose/$(hostname)/crontab.bak
cp /etc/fstab /home/lucas/scripts/docker_compose/$(hostname)
if [ -f /etc/exports ]; then
cp /etc/exports /home/lucas/scripts/docker_compose/$(hostname)
fi