update 1.2.2.2 beta

This commit is contained in:
MacRimi
2026-06-21 00:35:22 +02:00
parent 57e936785d
commit 8e92df5bd7
5 changed files with 1058 additions and 99 deletions
+5 -1
View File
@@ -228,8 +228,12 @@ _bk_borg() {
t_start=$SECONDS
: > "$log_file"
# Include manifest.json (top-level) when present — without it,
# parse_manifest.sh can't read the schema'd manifest on restore.
local -a _bk_borg_paths=(rootfs metadata)
[[ -f "$staging_root/manifest.json" ]] && _bk_borg_paths+=(manifest.json)
if (cd "$staging_root" && "$borg_bin" create --stats --progress \
"$repo::$archive_name" rootfs metadata) 2>&1 | tee -a "$log_file"; then
"$repo::$archive_name" "${_bk_borg_paths[@]}") 2>&1 | tee -a "$log_file"; then
elapsed=$((SECONDS - t_start))
# Extract compressed size from borg stats if available