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

@ -3,7 +3,7 @@
#
# Script Name: backup_incus_instances.sh
# Description: This script backs up all Incus instances
# to a specified backup directory. It is designed
# to a specified backup directory. It is designed
# to be invoked by Borgmatic hooks.
#
# Author: Benoit <forgejo@benoit.jp.net>
@ -44,7 +44,7 @@ while IFS=, read -r name; do
echo "Backing up instance: $name"
if incus export "$name" \
--compression=none --optimized-storage --instance-only \
--compression=none --instance-only \
"$BACKUP_DIR/${name}.tar" &> /dev/null; then
echo "Successfully backed up: $name"
@ -60,4 +60,3 @@ if $all_backups_successful; then
else
echo "Backup completed with errors. Some instances may not have been backed up."
fi

View file

@ -51,7 +51,7 @@ while IFS=, read -r type name used; do
echo "Backing up volume: $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
echo "Successfully backed up: $name"
@ -67,4 +67,3 @@ if $all_backups_successful; then
else
echo "Backup completed with errors. Some volumes may not have been backed up."
fi