Back up extra files using getExtraBackupPatterns

This commit is contained in:
Manuel Thalmann 2024-11-27 04:07:14 +01:00
parent 286cacbecb
commit 27daeb9ae3
8 changed files with 14 additions and 18 deletions

View file

@ -112,8 +112,8 @@ begin
printf "%s\0" "$name-ci" / printf "%s\0" "$name-ci" /
end end
function getBackupArgs function getExtraBackupPatterns
printf "%s\n" --hidden --no-ignore "data|\.secret\.|\.overrides\." (getServiceRoot $argv) echo "\.secret\.env\$"
end end
runInstaller --force $argv runInstaller --force $argv

View file

@ -94,9 +94,5 @@ begin
printf "%s\0" "$_flag_name" / printf "%s\0" "$_flag_name" /
end end
function getBackupArgs -V root
printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" --exclude "docker-compose.base.yml" (getServiceRoot $argv)
end
runInstaller --force $argv runInstaller --force $argv
end end

View file

@ -136,8 +136,8 @@ begin
end end
end end
function getBackupArgs -V root function getExtraBackupPatterns
printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" --exclude "docker-compose.base.yml" (getServiceRoot $argv) echo "^proton\.env\$"
end end
runInstaller --force $argv runInstaller --force $argv

View file

@ -65,8 +65,8 @@ begin
function getServiceLocations function getServiceLocations
end end
function getBackupArgs function getExtraBackupPatterns
printf "%s\n" --hidden --no-ignore "config|data|mods|worlds|\.properties\$" --exclude "docker-compose.yml" (getServiceRoot $argv) echo "\.properties\$|^(config|mods)\$"
end end
runInstaller --force $argv runInstaller --force $argv

View file

@ -100,5 +100,9 @@ begin
printf "%s\0" "$name" / printf "%s\0" "$name" /
end end
function getExtraBackupPatterns
echo "^(cache|db|nextcloud)\.env\$"
end
runInstaller --force $argv runInstaller --force $argv
end end

View file

@ -29,8 +29,8 @@ begin
function getServiceLocations function getServiceLocations
end end
function getBackupArgs function getExtraBackupPatterns
printf "%s\n" --hidden --no-ignore "^docker-compose\.(.*\.)\?.overrides.yml|data\$" (getServiceRoot $argv) echo "^docker-compose\.core\.overrides\.yml\$"
end end
runInstaller --force $argv --name "tm-forever" runInstaller --force $argv --name "tm-forever"

View file

@ -36,9 +36,5 @@ begin
printf "%s\0" "$_flag_name" / printf "%s\0" "$_flag_name" /
end end
function getBackupArgs
printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" (getServiceRoot $argv)
end
runInstaller --force $argv runInstaller --force $argv
end end

View file

@ -108,8 +108,8 @@ begin
printf "%s\0" "$name-ci" / printf "%s\0" "$name-ci" /
end end
function getBackupArgs function getExtraBackupPatterns
printf "%s\n" --hidden --no-ignore "data|\.secret\.|docker-compose\.overrides\.yml" (getServiceRoot $argv) echo "\.secret\.env\$"
end end
runInstaller --force $argv runInstaller --force $argv