feat(backup): add possibility to exclude macOS cloud-only files

This commit is contained in:
Christopher Loessl
2025-04-20 15:33:42 +02:00
parent a2a49cf784
commit f3d95893b2
8 changed files with 180 additions and 12 deletions

View File

@@ -0,0 +1,11 @@
Enhancement: Add support for --exclude-cloud-files on macOS (e.g. iCloud drive)
Restic treated files stored in iCloud drive as though they were regular files.
This caused restic to download all files (including files marked as cloud only) while iterating over them.
Restic now allows the user to exclude these files when backing up with the `--exclude-cloud-files` option.
Works from Sonoma (macOS 14.0) onwards. Older macOS versions materialize files when `stat` is called on the file.
https://github.com/restic/restic/pull/4990
https://github.com/restic/restic/issues/5352