Allow specifying additional patterns to back up

This commit is contained in:
Manuel Thalmann 2024-11-26 15:44:49 +01:00
parent d15487950b
commit acec4a484e

View file

@ -172,7 +172,17 @@ begin
sudo systemctl restart nginx sudo systemctl restart nginx
end end
function getExtraBackupPatterns
echo ""
end
function getBackupArgs function getBackupArgs
printf "%s\n" --base-directory (getServiceRoot $argv) --hidden --no-ignore "^(docker-compose\.secrets\.yml|data)\$" set -l extraPatterns (getExtraBackupPatterns)
if [ -n "$extraPatterns" ]
set extraPatterns "|$extraPatterns"
end
printf "%s\n" --base-directory (getServiceRoot $argv) --hidden --no-ignore "^(docker-compose\.secrets\.yml|data)\$$extraPatterns"
end end
end end