borg: Avoid trying to extract xattrs, ACLS, and bsdflags
when retrieving from a borg repository That broke restoring on linux from a borg backup made on OSX. Sponsored-by: Boyd Stephen Smith Jr. on Patreon
This commit is contained in:
parent
1877da2c3e
commit
9f38ecac1e
3 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
git-annex (8.20210904) UNRELEASED; urgency=medium
|
||||
|
||||
* borg: Avoid trying to extract xattrs, ACLS, and bsdflags when
|
||||
retrieving from a borg repository.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Fri, 03 Sep 2021 12:02:55 -0400
|
||||
|
||||
git-annex (8.20210903) upstream; urgency=medium
|
||||
|
||||
* Deal with clock skew, both forwards and backwards, when logging
|
||||
|
|
|
@ -360,6 +360,15 @@ retrieveExportWithContentIdentifierM borgrepo loc _ dest mkk _ = do
|
|||
absborgrepo <- absBorgRepo borgrepo
|
||||
let p = proc "borg" $ toCommand
|
||||
[ Param "extract"
|
||||
-- git-annex object files do not need any
|
||||
-- xattrs or ACLs, and trying to extract
|
||||
-- any that are set from the backup can lead
|
||||
-- to problems when doing a retrieve from a
|
||||
-- different OS than the one where the backup was
|
||||
-- made.
|
||||
, Param "--noxattrs"
|
||||
, Param "--noacls"
|
||||
, Param "--nobsdflags"
|
||||
, Param (borgArchive absborgrepo archivename)
|
||||
, File (fromRawFilePath archivefile)
|
||||
]
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 1"""
|
||||
date="2021-09-03T16:07:53Z"
|
||||
content="""
|
||||
I see no reason for it to need to preserve xattrs or ACLs.
|
||||
I've changed it to disable extracting those.
|
||||
"""]]
|
Loading…
Reference in a new issue