New Feature--Allow selecting subfolders for sync, but do not auto-sync new folders in the root folders
Expected behavior Have the ability to deselect a root folder containing other folders, while selecting subfolders under that root.
Actual behavior If one selects all current subfolders for syncing, underneath a root folder, the root folder is also selected for sync; there is no way to uncheck the root folder while keeping the current subfolders checked.
As a result, whenever someone adds new subfolders to the root, they get auto-downloaded by the client, and it gets checked as a folder to keep synced.
This is not always desirable for organizational purposes.
Steps to reproduce: Create a folder on the NextCloud server, with two subfolders Set up a NextCloud client on a workstation (Windows) and select the two subfolders of the root for sync See that if you try to click on the root folder's checkbox to deselect it and only sync the two subfolders, it won't let you; whenever all subfolders are checked, it automatically checks the root Make sure to re-check both subfolders to continue testing Add a new subfolder of the root folder from a web browser logged in to the ownCloud server Observe that it will sync the new folder to the workstation
As far as I can tell this is operating as designed, however, is this still a feature that can be added to future iterations of Nextcloud Desktop?
A User-Friendly way of specifying the new desired behavior: Allow one to uncheck the root folder when all its subfolders are checked. The default can still be to automatically leave it checked but allow the user to uncheck it manually.
The workaround specified in the comments of this issue https://github.com/owncloud/client/issues/4795, was ok as a workaround but is too cumbersome for users and has introduced a new issue.
When the name of a folder that has a manual sync setup is changed the manual folder sync needs to be reconfigured or stops syncing until the folder is renamed.
Server configuration
Operating system: Ubuntu 16.04 LTS 64-bit
Web server: Apache 2.4
Database: PostgreSQL
PHP version: 7
NextCloud version: 12
Storage backend: S3 Storage
Client configuration
Client Version: 2.3.3 (build 1)
Operating system: Windows 10 Pro
OS language: English
As a further improvement it should also be possible to select a folder, without automatically selecting all its subfolders. Maybe with Ctrl-Click or something... Currently the only way to do this is to click on the parent folder, and then deselecting all subfolders. Imagine having a folder with hundreds of subfolders and you only want to sync the parent folder and a few subfolders...
Also agree that this current setup is rather counter intuitive, and contrary to other syncing products, like Egnyte/Onedrive, this is not how they work. I posted a problem regarding this here too: #791
Just a bump to see if this will be looked at. The hope was that this issue would be resolved or feature added to the latest version of nextcloud.
Bump. (please change from feature request to bug)
I currently connected to a nextcloud hosting 60TB+ of data. I wanted to sync only 10 GB of that and selected a few subdirectories spread across the entire directories visible in the root. (so i need to select root as a sync location). In the end of the day I had 1TB of unwanted files on my laptop's ssd which were outside of the selected paths. (and my hdd was full). I found out this was caused by renamed files on the server that weren't part of what I selected in the nextcloud sync client.
Steps to reproduce:
have a file system like this:
├── baz(200kb) ├── foo(199kb) ├── rickAstleyConcerrrrtsssss(30TB) <--- this folder has a small typo and needs to be renamed. ├── foobar │ └── randomproject (10GB) <--- this is the selected folder i want to sync
- choose to sync "randomproject" in nectcloud client.
- ask co-worker to rename rickAstleyConcerts correctly (I did it on a external storage, not through NC gui. not sure if that is important).
So now the File Tree is changed to:
├── baz(200kb) ├── foo(199kb) ├── rickRollYeah(30TB) <--- now it has a correct name and gets downloaded to my hdd (unwanted) ├── foobar │ └── randomproject (10GB) <--- this is still the only selected file i want to sync
Result:
- nextcloud downloads the 30TB rickroll to my hdd.
- have a look at the sync settings: the folder "rickRollYeah" has a checked check-box now.
User intents
- Expected behaviour: sync a folder selectively within a file tree. Changes outside the selected parts should not get synchronized (changes in siblings should get synced, changes in parent folders should not get downloaded to the client's machine)
- actual behaviour: parts outside the selected folder (in a parent folder) are synced when changes occur there.
The original title for this bug report suggests it is a feature request. I think this is more a "bug" than a "new feature request" as this is probably never the intended behaviour of a user that actively and explicitly chooses a subdirectory to sync. It makes nextcloud's desktop sync unusable for large file servers that have more storage than a single workstation.
In an other report there was a workaround mentioned: https://github.com/owncloud/client/issues/4795 (instead of selecting a root directory for sync just select a new root for every folder you want to sync). The reasoning there was that "other products similar to owncloud work the same way". This kind of stuff kept me away from using dropbox together with bigger companies a long time ago (big company has TB of dropbox, I have only a small GB account - always full of crap that somebody uploaded in the company dropbox - so in the end I need to buy a large dropbox account $$$$:). Also this workaround makes the check-boxes for sync location selection obsolete. (+ I tried this as workaround and it's complicated to use and to maintain and also was causing some unwanted behaviours).
System Info:
- NC 18.0.4
- Ubuntu Sync Client: 2.6.4-20200303.193231
similar bugs:
#791 #256 https://github.com/owncloud/client/issues/4795
Thanks, marking as duplicate of #10
Duplicate of #10