Allow specifying additional patterns to back up
This commit is contained in:
parent
8101b9e817
commit
30c1618318
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue