Reduce metric writes and preserve scheduler history
This commit is contained in:
@@ -11,6 +11,7 @@ mkdir -p "$OLD/secrets" "$ROOT/var/log/plugins" "$ROOT/tmp/plugins"
|
||||
printf '%s\n' '{"settings":{"resticPath":"/usr/local/libexec/'"$OLD_NAME"'/restic","restoreRoot":"/mnt/user/'"$OLD_NAME"'-restores","persistentLogDir":"/mnt/user/system/'"$OLD_NAME"'-logs"}}' > "$OLD/config.json"
|
||||
printf '%s\n' '[]' > "$OLD/runs.json"
|
||||
printf '%s\n' '[]' > "$OLD/backup-metrics.json"
|
||||
printf '%s\n' '{"runId":"new-format"}' > "$OLD/backup-metrics.jsonl"
|
||||
printf '%s\n' 'encrypted' > "$OLD/secrets/secret.json"
|
||||
touch "$ROOT/boot/config/plugins/$OLD_NAME.plg" "$ROOT/var/log/plugins/$OLD_NAME.plg" "$ROOT/tmp/plugins/$OLD_NAME.plg"
|
||||
|
||||
@@ -19,6 +20,7 @@ URBM_ROOT_PREFIX="$ROOT" "$(dirname "$0")/../plugin/doinst.sh"
|
||||
test -f "$NEW/config.json"
|
||||
test -f "$NEW/runs.json"
|
||||
test -f "$NEW/backup-metrics.json"
|
||||
test -f "$NEW/backup-metrics.jsonl"
|
||||
test -f "$NEW/secrets/secret.json"
|
||||
test ! -e "$OLD"
|
||||
test ! -e "$ROOT/boot/config/plugins/$OLD_NAME.plg"
|
||||
|
||||
Reference in New Issue
Block a user