Allow specifying additional patterns to back up

This commit is contained in:
Manuel Thalmann 2024-11-26 15:44:49 +01:00
parent b164c3f93b
commit 6d18b563fc

View file

@ -172,7 +172,17 @@ begin
sudo systemctl restart nginx
end
function getExtraBackupPatterns
echo ""
end
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