Do not use optimized storage as it breaks borg logic
This commit is contained in:
parent
781720989c
commit
ddadfbb635
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue