Skip to content

Selective Sync for Mirall #1766

Closed
Closed

Description

@MTRichards

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
    desktopsync1
  • 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).
    untitled

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

  1. jancborchardt commented on May 16, 2014

    @jancborchardt
    Contributor

    @MTRichards yes, good writeup, includes everything we discussed about. cc @dragotin @danimo as we talked about as well.

  2. PaSavICT commented on Jun 6, 2014

    @PaSavICT

    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.
    schermafbeelding 2014-06-06 om 16 29 55

  3. jancborchardt commented on Jun 6, 2014

    @jancborchardt
    Contributor

    @PaSavICT That’s why this issue is still open. It’s not implemented yet.

  4. PaSavICT commented on Jun 6, 2014

    @PaSavICT

    Sorry, i thought it was already done. Will look more careful. If you need a Mac tester .. ;-)

  5. moscicki commented on Jun 6, 2014

    @moscicki
    Contributor

    Hello,

    Yes, it is very important to us too. Thanks for picking this up.

    This screen includes a new line on this page that says:
    "All of your server files will be synced to this desktop. If you would like to change this behavior, click here.

    Could a simplified version of this checkbox be implemented soon? i.e. if the user check it then setting up of the default root folder will be skipped altogether. This will allow the user to skip setting up the default folder and allow them to add folders manually via the existing "Add Folder" button. That would already be a good improvement which is very cheap to implement.

    The rest of my comments below relate to the full-fledged selective sync support:

    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 screen (which is not checked by default in this view) 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.
    At this point it should be possible for the user to decide to define the folders later.
    Twisties enable a user to drill into sub directories and select sub directories as well to sync.
    The ability to enable this "selective sync" option should be a config option, so that a server operator user can turn this "selective sync" menu on or off in the client
    This screen should also be accessible from within ownCloud settings, so that a user can engage 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.
    I think it should be better not to delete the folder by default. User should check the box if he wanted the folder to be deleted by the client (me preference) or there should be a dialog box (yes/no).

    kuba

  6. rasos commented on Jun 9, 2014

    @rasos

    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:

    1. before first sync, show all root folders available on ownCloud server
    2. allow to check and move folder name(s) to exclude list (which can be maintained later with the existing knob on the user account window: "edit ignored files")

    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.

  7. 4bendo commented on Jun 11, 2014

    @4bendo

    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.

  8. PVince81 commented on Jun 23, 2014

    @PVince81

    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.

  9. thaispice commented on Aug 1, 2014

    @thaispice

    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 :)

  10. danimo commented on Aug 5, 2014

    @danimo
    Contributor

    @thaispice This is not scheduled for 1.7 but I 1.8.

  11. danimo commented on Aug 5, 2014

    @danimo
    Contributor

    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 ?

  12. alerque commented on Aug 5, 2014

    @alerque

    @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 .gitignore where 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.

  13. 2 remaining items

  14. moodler-zz commented on Aug 12, 2014

    @moodler-zz

    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

  15. danimo commented on Aug 15, 2014

    @danimo
    Contributor
  16. MTRichards commented on Aug 15, 2014

    @MTRichards
    Author

    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.

  17. ogoffart commented on Aug 16, 2014

    @ogoffart
    Contributor

    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.

  18. MTRichards commented on Aug 16, 2014

    @MTRichards
    Author

    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.

  19. jancborchardt commented on Aug 19, 2014

    @jancborchardt
    Contributor

    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.

  20. mmattel commented on Aug 21, 2014

    @mmattel
    Contributor

    @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

  21. jancborchardt commented on Aug 21, 2014

    @jancborchardt
    Contributor

    @mmattel let’s keep the server-side discussion in owncloud/core#7909

  22. MTRichards commented on Aug 21, 2014

    @MTRichards
    Author

    An interesting feature request @mmattel . tagging in core as such.

  23. mmattel commented on Aug 22, 2014

    @mmattel
    Contributor

    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.

  24. moscicki commented on Aug 22, 2014

    @moscicki
    Contributor

    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

  25. haffenloher commented on Oct 7, 2014

    @haffenloher

    This feature is available in the beta versión, download http://owncloud.org/install/#testing.

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions