Do not use optimized storage as it breaks borg logic

This commit is contained in:
Benoit 2025-02-05 21:26:52 +09:00
parent 781720989c
commit ddadfbb635
Signed by: Benoit
SSH key fingerprint: SHA256:kFsX94Kq6z/6CY0dX+7/FpAeJC0QlMhJVY+B7NYrOmA
2 changed files with 3 additions and 5 deletions

View file

@ -44,7 +44,7 @@ while IFS=, read -r name; do
echo "Backing up instance: $name" echo "Backing up instance: $name"
if incus export "$name" \ if incus export "$name" \
--compression=none --optimized-storage --instance-only \ --compression=none --instance-only \
"$BACKUP_DIR/${name}.tar" &> /dev/null; then "$BACKUP_DIR/${name}.tar" &> /dev/null; then
echo "Successfully backed up: $name" echo "Successfully backed up: $name"
@ -60,4 +60,3 @@ if $all_backups_successful; then
else else
echo "Backup completed with errors. Some instances may not have been backed up." echo "Backup completed with errors. Some instances may not have been backed up."
fi fi

View file

@ -51,7 +51,7 @@ while IFS=, read -r type name used; do
echo "Backing up volume: $name" echo "Backing up volume: $name"
if incus storage volume export default "$name" \ if incus storage volume export default "$name" \
--compression=none --optimized-storage --volume-only \ --compression=none --volume-only \
"$BACKUP_DIR/${name}.tar" &> /dev/null; then "$BACKUP_DIR/${name}.tar" &> /dev/null; then
echo "Successfully backed up: $name" echo "Successfully backed up: $name"
@ -67,4 +67,3 @@ if $all_backups_successful; then
else else
echo "Backup completed with errors. Some volumes may not have been backed up." echo "Backup completed with errors. Some volumes may not have been backed up."
fi fi