Back up extra files using getExtraBackupPatterns

This commit is contained in:
Manuel Thalmann 2024-11-27 04:07:14 +01:00
parent 46dc6be934
commit 3d3fa32f0d
8 changed files with 14 additions and 18 deletions

View file

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

View file

@ -94,9 +94,5 @@ begin
printf "%s\0" "$_flag_name" /
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
end

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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