fix(backup_docker): add check for exports file
This commit is contained in:
1 parent
54bc36037a
commit
1fb97c2097
1 file changed
+2
@@ -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
|
||||
Reference in new issue
Block a user