feat(borgbackup): add --noxattrs option to borg extract command

Extended attributes are not needed for the restore process and can cause
issues on filesystems that do not support them. Adding --noxattrs skips
restoring extended attributes during extraction.

Assisted-by: GitHub Copilot:claude-sonnet-4
This commit is contained in:
copilot-swe-agent[bot]
2026-07-31 09:31:03 +00:00
committed by GitHub
parent 5b94a3a27a
commit 4f36f8a0af
+1 -1
View File
@@ -436,7 +436,7 @@ if [ "$BORG_MODE" = restore ]; then
#
# Older backups may still contain files we've since excluded, so we have to exclude on extract as well.
cd / # borg extract has no destination arg and extracts to CWD
if ! borg "$BORG_LOG_LEVEL_FLAG" extract "::$SELECTED_ARCHIVE" --progress --exclude-from /borg_excludes "${ADDITIONAL_BORG_EXCLUDES[@]}" --pattern '+nextcloud_aio_volumes/**'
if ! borg "$BORG_LOG_LEVEL_FLAG" extract "::$SELECTED_ARCHIVE" --progress --noxattrs --exclude-from /borg_excludes "${ADDITIONAL_BORG_EXCLUDES[@]}" --pattern '+nextcloud_aio_volumes/**'
then
RESTORE_FAILED=1
echo "Failed to extract backup archive."