You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow multiple accounts to sync the same local folder #3764
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 :-)
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?
I would say this works fine for ordinary use.
The followup issues are:
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).
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".
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.
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.
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
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)
Activity
guruz commentedon Sep 6, 2015
@icewind1991 You mean sync the same local folder? The problem is we use exactly one
.csync_journal.dbper local folder and server..icewind1991 commentedon Sep 6, 2015
Yes
Yes, you would have to change the csync.db filename to be based on the server
[-]Allow multiple accounts to sync the same folder[/-][+]Allow multiple accounts to sync the same local folder[/+]RalfWW commentedon Sep 8, 2015
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
gebhard73 commentedon Jan 31, 2016
I've just created the workaround RalfWW mentioned - hopefully it will work :-)
Nevertheless I'd like to "vote" for this feature, too.
cheers,
Gebhard
RalfWW commentedon Feb 1, 2016
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
gebhard73 commentedon Feb 2, 2016
Ah - thanks for the feedback, I'll have a look into it next weekend latest.
Have you tried junctions?
Cheers,
Gebhard
gebhard73 commentedon Mar 9, 2016
Any information if 2.1.1. works with this workaround?
Thanks!
RalfWW commentedon Jul 8, 2016
It seems that Version 2.2.2 is back with the old functionality to handle symlinked directories.
gebhard73 commentedon Jul 9, 2016
Thanks, seems indeed to work again ... :-)
guruz commentedon Jul 10, 2016
@ckamm @dragotin We seem to have a conflict here with regards to #5036
@gebhard73 and @RalfWW want a behaviour that we're disallowing (again).
gebhard73 commentedon Jul 10, 2016
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?
18 remaining items
phil-davis commentedon Jan 5, 2017
I would say this works fine for ordinary use.
The followup issues are:
SamuAlfageme commentedon Jan 5, 2017
@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.
gebhard73 commentedon Jan 5, 2017
Thanks @phil-davis and @SamuAlfageme for testing, appreciate it. And again sorry that I'm not able to test at the moment...
SamuAlfageme commentedon Jan 9, 2017
I was running some test to check migration strategy (if the old
.csync_journal.dbis 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 (
.shmand.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.DB: Also migrate -shm and -wal to new name #3764 #5045
SamuAlfageme commentedon Jan 16, 2017
As pointed in #3764 (comment) the
Share with ownCloudis troublesome for shared folders. Couple of issues that should be addressed: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.phil-davis commentedon Jan 16, 2017
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)
guruz commentedon Jan 16, 2017
@SamuAlfageme Could you create new issues for this and close the issue here?
DB: Also migrate -shm and -wal to new name #3764 #5045 (#5459)