desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Sync Documents, Download, etc like Onedrive "Folder Backup" or "Dropbox Backup"

Open axheli opened this issue 1 year ago • 7 comments

It would be amazing if this feature would be available in Nextcloud. Onedrive calls it folder back. Please see below link for reference.

Image

Sync with my Documents, Download, etc like onedrive

axheli avatar Dec 30 '24 01:12 axheli

Please correct me on anything below I am wrong about. 🙂 I can comment on the Apple platforms only for the most part.

On Backups

To my understanding the labelling is misleading. Those are not backups. Those are just additional locations to synchronize. I also quickly checked the online documentation of OneDrive about this which appears to confirm my interpretation. Neither Nextcloud nor our competitors pose as backup solutions but cloud storage and synchronization services.

On Dropbox Backup

Dropbox indeed appears to have a new offering for backups. This is a completely different thing than a plain cloud storage and synchronization service. This is not just a client-side feature either. It is a complementary online service integrated into their client. Reading the the product page, it is an actual backup and not just synchronization service. While out of scope for Nextcloud as a whole for now, quite a nice idea. Though, we cannot deliver this as a purely client-side feature.

On macOS

On macOS, the file provider framework enables this as a first class feature through NSFileProviderKnownFolders. Though, as off writing, only for "Documents" and "Desktop".

The classic synchronization folders as well as the file provider extension are subject to restrictions imposed by the macOS app sandbox (introduced with #9023). Because of that and how the whole file provider framework by Apple is designed, it cannot synchronize arbitrary locations but only those managed by the framework. The classic synchronization folders can be configured to synchronize standard locations (in example "Desktop") without this convenience user interface already.

On Competitors

I did a quick check.

  • Microsoft OneDrive on macOS, downloaded from Mac App Store, does not offer any feature like this.
  • Google Drive offers its file provider and additionally arbitrary location "backup" (sync) which resembles our classic synchronization folders and complies with the macOS app sandbox through explicit user consent.
  • Dropbox has its file provider and can handle additional locations (through traditional synchronization, apparently) and has its fancy new backup service.
  • Box got pretty minimalistic and I do not see any trace about something like that.

i2h3 avatar May 26 '26 08:05 i2h3

We used to kind of achieve this on macOS by using Classic Sync for folders like Desktop and Documents, while using Virtual Files / File Provider for Team Folders and everything else.

Unfortunately, this functionality was removed in V34 of the Desktop client and, according to this forum post, it won't be coming back.

I would really appreciate it if support for NSFileProviderKnownFolders could be implemented. This would allow us to continue syncing the Desktop and Documents folders of users to Nextcloud, helping prevent data loss if a device is lost, damaged, or replaced.

RozenixVR avatar Aug 06 '26 09:08 RozenixVR

We need to ensure that conflict handling is fully covered in our macOS file provider extension before we can work on this. So, there is some preparation work to be done first but we would really like to add this feature.

i2h3 avatar Oct 01 '26 13:10 i2h3

Cool but this can be done ? on the macOS side ?

AndyXheli avatar Oct 01 '26 15:10 AndyXheli

Here's a quick overview how it looks on the Onedrive new UI

Image Image

AndyXheli avatar Oct 02 '26 16:10 AndyXheli

We have to maintain the clear distinction between the features mentioned above:

  1. Backups? No! 🙅🏻‍♀️ We preach this all the time. Nextcloud is a two way synchronization solution, not a backup solution. This is a fundamental difference. This topic comes up frequently and has been discussed thoroughly, as a superficial web search can reveal quickly. What OneDrive and Dropbox offer is an additional complementary service which Nextcloud does not offer right now (if you exclude the Borg backup integration in the Nextcloud all-in-one deployments).
  2. Synchronizing known folders like Desktop and Documents additionally? Yes! 👍🏼 At least on macOS in combination with the file provider. As stated earlier, there is some work to do before we get there, though.

Maybe OneDrive actually is just synchronizing and using the term "backup" inappropriately. That is dangerous. People mistake "sync" for "backup" already too easily. 🙈

i2h3 avatar Oct 06 '26 09:10 i2h3

What OneDrive (and similar cloud services) does with Known Folder Move (redirecting your Desktop, Documents, and Pictures folders) is file synchronization, not a traditional backup. So even though you're clicking on my local documents folder the root folder location would be located within Nextcloud

AndyXheli avatar Oct 07 '26 01:10 AndyXheli