Skip to content

Allow multiple accounts to sync the same local folder #3764

Closed

Description

@icewind1991

Currently when using the multi-account feature it's not possible to sync the same folder to multiple servers.

It would be nice to have the options to sync a folder to multiple servers.

Activity

  1. guruz commented on Sep 6, 2015

    @guruz
    Contributor

    @icewind1991 You mean sync the same local folder? The problem is we use exactly one .csync_journal.db per local folder and server..

  2. icewind1991 commented on Sep 6, 2015

    @icewind1991
    Author

    You mean sync the same local folder

    Yes

    The problem is we use exactly one .csync_journal.db per local folder and server..

    Yes, you would have to change the csync.db filename to be based on the server

  3. added this to the backlog milestone on Sep 7, 2015
  4. changed the title [-]Allow multiple accounts to sync the same folder[/-] [+]Allow multiple accounts to sync the same local folder[/+] on Sep 7, 2015
  5. RalfWW commented on Sep 8, 2015

    @RalfWW

    I run this scenario like this under Win7:

    folder-owncloud1
    Symlink-to_folder_ABC >---|
    |----> folder_ABC
    folder-owncloud2 |
    Symlink-to_folder_ABC >---|

    Having two local folders synced to a dedicated owncloud server (owncloud1, owncloud2) each.
    Adding a symbolicLink to the "shared" folder (folder_ABC).

    The only drawback: changes within folder_ABC will not be detected by the client "in time". It can take a long time (up to one hour, I guess) until the client performs a "check over all" run to get notice about the changes.
    Stop and start syncing at the client will start a "check over all" manually in case you are in a hurry :-)

    regards

  6. gebhard73 commented on Jan 31, 2016

    @gebhard73

    I've just created the workaround RalfWW mentioned - hopefully it will work :-)

    Nevertheless I'd like to "vote" for this feature, too.

    cheers,
    Gebhard

  7. RalfWW commented on Feb 1, 2016

    @RalfWW

    The actual clients don't support symlinks anymore.
    The upcoming release 2.1.1 might perform it again!?

    I'm staying with Version 2.0.1, the last that worked with symlinks (directories only!)

    Ralf

  8. gebhard73 commented on Feb 2, 2016

    @gebhard73

    Ah - thanks for the feedback, I'll have a look into it next weekend latest.
    Have you tried junctions?

    Cheers,
    Gebhard

  9. removed this from the backlog milestone on Feb 22, 2016
  10. gebhard73 commented on Mar 9, 2016

    @gebhard73

    Any information if 2.1.1. works with this workaround?

    Thanks!

  11. RalfWW commented on Jul 8, 2016

    @RalfWW

    It seems that Version 2.2.2 is back with the old functionality to handle symlinked directories.

  12. gebhard73 commented on Jul 9, 2016

    @gebhard73

    Thanks, seems indeed to work again ... :-)

  13. guruz commented on Jul 10, 2016

    @guruz
    Contributor

    @ckamm @dragotin We seem to have a conflict here with regards to #5036
    @gebhard73 and @RalfWW want a behaviour that we're disallowing (again).

  14. gebhard73 commented on Jul 10, 2016

    @gebhard73

    My problem is: I really need the symlink feature because it's a workaround for the missing server 2 server sync (owncloud/core#1190). Perhaps it can be made configurable?

  15. 18 remaining items

  16. phil-davis commented on Jan 5, 2017

    @phil-davis
    Contributor

    I would say this works fine for ordinary use.
    The followup issues are:

    1. Overlay icons disappear when one of the accounts is removed - they should "switch over" to show the file/folder status with respect to the remaining account(s) that sync the folder tree. There might be a whole issue of the state to be shown when a file is being uploaded to multiple places (I guess it should show the "highest severity" state out of all the places the file is currently syncing to).
    2. Context menu for sharing - add some way for the user to know and choose which server they are sharing from when they "Share with ownCloud".
  17. SamuAlfageme commented on Jan 5, 2017

    @SamuAlfageme
    Contributor

    @guruz Oh yeah, the basic workflow does.

    The whole concept needs some more work though (refer to @phil-davis's #3764 (comment)), that's why I kept this one open. We can move those concerns to a different issue to get closure here.

  18. gebhard73 commented on Jan 5, 2017

    @gebhard73

    Thanks @phil-davis and @SamuAlfageme for testing, appreciate it. And again sorry that I'm not able to test at the moment...

  19. modified the milestones: 2.4.0, 2.3.0 on Jan 5, 2017
  20. removed
    ReadyToTest
    on Jan 5, 2017
  21. SamuAlfageme commented on Jan 9, 2017

    @SamuAlfageme
    Contributor

    I was running some test to check migration strategy (if the old .csync_journal.db is renamed and its contents preserved) after updating the client in different platforms. So far, so good.

    One thing that strikes me though is that the old temporary SQLite files (.shm and .wal) so they stay and are recreated for the new journal. I don't know if their contents are important; if not they should be erased.

  22. modified the milestones: 2.3.0, 2.4.0 on Jan 13, 2017
  23. SamuAlfageme commented on Jan 16, 2017

    @SamuAlfageme
    Contributor

    As pointed in #3764 (comment) the Share with ownCloud is troublesome for shared folders. Couple of issues that should be addressed:

    • Right now, only the first user that created the folder sync connection get to share files from the contextual menu. And you get SocketApi: Sending message: "SHARE:NOTSYNCED:/file.txt" until the new user's files that you are trying to share are uploaded to the first user account.
    • An account picker should be implemented to choose which account should originate the share

  24. phil-davis commented on Jan 16, 2017

    @phil-davis
    Contributor

    And so the client needs to know which upstream servers have the file - e.g. if it has been just downloaded from account1 and is yet to finish uploading to account2 - so it can present only the valid accounts to share from in the account picker. (I guess the client should have all the meta-data locally in the sync db for each account to know this)

  25. guruz commented on Jan 16, 2017

    @guruz
    Contributor

    @SamuAlfageme Could you create new issues for this and close the issue here?

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions