Cloud/Virtual Files (OneDrive, Dropbox, etc.) #6035
Replies: 4 comments 1 reply
-
You mean your source ("to get backed up") files are on OneDrive? borg accesses ALL files in the source set for each backup you create. It needs to stat() them at least (for change detection) and usually also fetches ACLs, xattrs and bsdflags from them (even if file content is unchanged - this can be prevented by not backing up this metadata, see borg create options). |
Beta Was this translation helpful? Give feedback.
-
So it looks like this might be the ultimate answer, but I see there has been no update since February. #4972 I've compared a file in the OneDrive folder that has been downloaded locally against one that has not and xaddr shows these two attributes for files that have not been downloaded: com.apple.metadata:com_apple_backup_excludeItem So if there was a way to tell borg to skip files with the com.apple.metadata:com_apple_backup_excludeItem attribute, it would likely fix this for any and all of these virtual files. |
Beta Was this translation helpful? Give feedback.
-
In the meantime though, how would I go about excluding OneDrive folders? The root folder will always have OneDrive in the name, just "OneDrive" for personal and "OneDrive - Tenant Name" for business ("OneDrive - Github Inc." for example). In most cases, it's located at /Users/User/OneDrive... but it could technically be anywhere under /Users/Users/. |
Beta Was this translation helpful? Give feedback.
-
borg does not support including/excluding files based on xattrs. but you can use patterns on the path/filename (see docs). especially the or put a |
Beta Was this translation helpful? Give feedback.
-
It appears that Borg will trigger OneDrive and possibly other software that uses on-demand sync to only download files locally when opened to start downloading all the files as it attempts to access them. Is this something that can be prevented from happening beyond exclusions? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions