Back up extra files using getExtraBackupPatterns
This commit is contained in:
parent
46dc6be934
commit
3d3fa32f0d
8 changed files with 14 additions and 18 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue