Back up extra files using getExtraBackupPatterns
This commit is contained in:
parent
2e1fa261bd
commit
70d2323d68
8 changed files with 14 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -100,5 +100,9 @@ begin
|
|||
printf "%s\0" "$name" /
|
||||
end
|
||||
|
||||
function getExtraBackupPatterns
|
||||
echo "^(cache|db|nextcloud)\.env\$"
|
||||
end
|
||||
|
||||
runInstaller --force $argv
|
||||
end
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue