Repository navigation
Description
Revitalizing this thread, as - with the additional of external file stores, this is becoming increasingly critical.
A lot of input and comments can be found at issue #100
As a user, I want to be able to choose which folders from the ownCloud server I want to sync to my desktop sync client so that I can ensure access to all of my files, while also saving space on my local hard drives.
In particular, if you add a large dropbox account, or an S3 container with a lot of files, you may not want to sync those all to your desktop, instead you only want to only sync some of them.
Acceptance Criteria:
- During the initial setup, this screen pops up after you provide valid credentials to the server

- This screen includes a new line on this page that says:
"All of your server files will be synced to this desktop folder. If you would like to select which directories to sync to your desktop folder, click here." - Then this opens a new screen after the screen above. On this screen is a list of folders that are available to sync on the server. This list is default sorted by name of folder, but can also be sorted by size of folder / subfolder. A checkbox next to each top level folder(which is not checked by default to encourage users to actually deliberately select a sync folder) will determine which folders are synced with this client. An ok button then takes the user to the "connect" page that is the next step in the current client, the users clicks connect and the client starts syncing.
- Twisties next to each root level folder enable a user to drill into sub directories and select sub directories under top level folders as well to sync. In this case, a checkbox selects the sub directory, and a gray box fills the higher level check box. As soon as these changes are accepted, the folders that are no longer synced are deleted from the client (but not from the server).

Note: The root ownCloud folder also has a separate checkbox, because you should be able to sync the contents of the root folder without syncing all folders under that. This is because files that are shared with you appear in the root folder by default, so the user must be able to sync these. this is resolved with a check box called "Sync individual files shared with me" that sync all of these, even if the root folder is not selected.
- The ability to enable this "selective sync" should be a config option (in a config file on the client), so that a server operator can turn this "selective sync" menu on or off in all clients attached to their server
- This screen should also be accessible from within ownCloud settings, so that a user can enable selective sync at any time, or revert to total sync
- The scenario where a user first is syncing everything and then later wants to "selective sync" also has to be allowed. In this case, a directory that was unchecked is removed from the desktop client (deleted) once the user clicks ok. A warning that pops up should notify the user that their local files will be deleted for the directories that have been unselected.
@jancborchardt Adds? Any screen scribbles?
Activity
jancborchardt commentedon May 16, 2014
@MTRichards yes, good writeup, includes everything we discussed about. cc @dragotin @danimo as we talked about as well.
PaSavICT commentedon Jun 6, 2014
This is not the case with the OS X Desktop Client. I don't get this option. I only can add folders, but then i need to add a diffrent subfolder.

jancborchardt commentedon Jun 6, 2014
@PaSavICT That’s why this issue is still open. It’s not implemented yet.
PaSavICT commentedon Jun 6, 2014
Sorry, i thought it was already done. Will look more careful. If you need a Mac tester .. ;-)
moscicki commentedon Jun 6, 2014
Hello,
Yes, it is very important to us too. Thanks for picking this up.
The rest of my comments below relate to the full-fledged selective sync support:
kuba
rasos commentedon Jun 9, 2014
Yes, that's very important: ask which folders to subscribe before first sync.
We had two support cases last week, when two novice ownCloud users deleted big folders locally, because they didn't want to waste space on their desktop, with the consequence that the folders have been deleted also on the server, in GroupOffice (we're using their bridging app) and at all other users syncing the same folders. Needed to restore those folders from nightly backup :-[
Proposal for a very quick fix:
Or even more simple: show pop-up window that all folders from server will be synced and if you do not want that edit the ignored files list.
Alternatively, offer on ownCloud server in core or as an app checkboxes to exclude folders or files from syncing.
4bendo commentedon Jun 11, 2014
I recently installed 1.6 client on Windows and after the full sync of data, I quickly opened the OC-Client and deleted the root folder sync.
I then added the folder(s) manually.
It would be much easier if the "ADD FOLDER" button first displays the Server folder structure window, then the Local folder window, this way the user could make sure their folder name is the same as the server-side. An additional "nice to have" would be if the local folder window would auto-populate the folder and create the folder name the same as the server side. Right now you have to click browse and add the new folder and select it.
As far as the previous comments above about selective sync, I like them.
PVince81 commentedon Jun 23, 2014
And... it happened again.
Today for some reason the client forgot my credentials so I had to set it up again and BOOM, full sync again. Had to kill it, delete the local folder and reconfigure it to use "clientsync" on the remote folder.
I know this is planned. Just writing to express my frustration once again.
Thanks.
thaispice commentedon Aug 1, 2014
We are using Mac clients - is the RC client supporting this feature yet for Mac? If so I would be very keen to test when it is. We are considering moving from dropbox but this missing feature is a big issue for us. Very encouraged you are working on it - thanks :)
danimo commentedon Aug 5, 2014
@thaispice This is not scheduled for 1.7 but I 1.8.
danimo commentedon Aug 5, 2014
Clarification request: So far we expected this to be solvable by reusing the existing blacklist mechanism, but thinking about potential use cases (sync with large data storages), I rather think we would need a whitelist for the selected folders, rather than a blacklist for the unselected ones.
The difference is the behavior for new folders that show up on the servers: Should they be synced automatically or not? I think they should not, as people can easily subscribe to them through selection. With a blacklist however, people will be force-subscribed to any newly created folder.
Opinions, @MTRichards ?
alerque commentedon Aug 5, 2014
@danimo I think whitelist makes more sense as a model here. Across several cloud storage and sync systems I use, in almost all the cases that I do anything less that a full sync, I actually do a very small subset and do not want new resources being added to the sync without being selected.
On the other hand by far the most versatile way of doing this is with a blacklist that handles negation. A simple example of this is
.gitignorewhere you can ignore*, then add back in items you want to whitelist. This could be abstracted in a GUI fairly easily by having a toggle for "include new items by default" and then either fill out the blacklist or make it a whitelist by adding * and adding items back in.2 remaining items
moodler-zz commentedon Aug 12, 2014
I'm very glad to see this coming in 1.8. It's a key reason I'm choosing to go with Owncloud.
For us the major use case is for when you have a team of people using a shared folder for a number of projects. This issue will make it much easier to a) detect that new subfolders have been added and b) choose to sync them or not with a simple checkbox.
And +1 for a checkbox to "Auto-sync new subfolders" so the user can choose.
The mobile apps need the same thing. See owncloud/ios-legacy#122 and owncloud/android#3
danimo commentedon Aug 15, 2014
@MTRichards ping?
MTRichards commentedon Aug 15, 2014
White list is better. It should be explicit what is to sync, and the default that things don't sync. This makes a big difference when you start to provide a consolidated access point to many backend storage systems, so Danimo - you are right on. Particularly when you first set up syncing on a new installation.
However, I don't want to confuse white list at the initial install from the default for syncing stuff in a folder shared with you.
For example, if a folder is shared with you "Project X", and you decide to sync it to your desktop in a whitelist, then anything under it (and any folders added by a team member) should also be synced. If a team member adds a new folder under it, it should be automatically synced until you change it from the options panel.
ogoffart commentedon Aug 16, 2014
Actually, I had implemented it as a white list as first. But then I moved to a blacklist because of some problem that appears if it is a white list.
In a white list, by default, the root folder is in the white list, so everything is sync'ed. Not problem there.
But once you uncheck one folder, the root folder is no longer in the white list, only all the other folder than the unchecked folder are in the white list. Then that means that files in the parent folders are not sync'ed (because parent folders are not in the white list.) and also new folders sibillings of the unchecked ones, both from the local file system or the remote owncloud are not sync'ed)
That's why I moved it to a blacklist in which you deselect the folder you don't need, and if there is a new folder added, it will be added.
If one wants a white list, it can be done by adding different folders.
MTRichards commentedon Aug 16, 2014
If a blacklist, then Please default to nothing being checked in the wizard when users first enter it. Otherwise click click click and the entire document library syncs by default.
jancborchardt commentedon Aug 19, 2014
Well, the »Selective sync« dialog should of course also have a checkbox at the root »ownCloud« folder so you can quickly uncheck everything. But default should be everything checked – cause that reflects the way how it currently works.
mmattel commentedon Aug 21, 2014
@danimo, is there any plan to integrate a server sided deny mechanism, means that admins can disable certain folders or mountpoints to be generally excluded? Please read my comment at owncloud/core#7909
jancborchardt commentedon Aug 21, 2014
@mmattel let’s keep the server-side discussion in owncloud/core#7909
MTRichards commentedon Aug 21, 2014
An interesting feature request @mmattel . tagging in core as such.
mmattel commentedon Aug 22, 2014
Question: how does Mirall get the list of "folders" to be synced from the oC instance when it connects. Which kind of requests are made. I guess that there is a kind of: give me a list of folders query but I have no idea how this is done and by that which components of the oC instance are involved by this. Would you mind to bring some light into the darkness :-) I have not foundy any description on this.
moscicki commentedon Aug 22, 2014
It's webdav.
Here is an (incomplete) draft of specification we are currently collaborating on with owncloud developers. Not yet updated to the latest and greatest features in 1.7.
http://cern.ch/cernbox-resources/doc/oc_sync_protocol.html
luciamaestro commentedon Oct 7, 2014
This feature is available in the beta versión, download http://owncloud.org/install/#testing.
haffenloher commentedon Oct 7, 2014
Thank you! I tested this feature with my OC 7.0.2 instance. For a directory with many, many subfolders, I selected only one subfolder to sync. Nevertheless, five other additional, unwanted subfolders were also downloaded, so there seems to be a problem with the implementation.
Is there any additional information I can provide to help resolve this?
luciamaestro commentedon Oct 8, 2014
@brumsoel Please crearte a new issue using the template https://raw.githubusercontent.com/owncloud/mirall/master/issue_template.md