Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

2-way sync #30

Open
michabbs opened this issue Sep 8, 2016 · 0 comments
Open

2-way sync #30

michabbs opened this issue Sep 8, 2016 · 0 comments

Comments

@michabbs
Copy link

michabbs commented Sep 8, 2016

The README misses very important information: "How to SAFELY perform 2-way synchronization?".

For example - if I start periodically from cron such script:

#!/bin/sh
dropbox-api-command sync dropbox:/ ~/Dropbox -d
dropbox-api-command sync ~/Dropbox dropbox:/ -d

It seems to work fine, but... is it really safe? What can happen if one file was changed on both sides simultaneusly? Is there any race condition here possiible here? What if I add a new file when the synchronization is already half-way? Will the script do something reasonable then? Are there any disadvantages/dangers of running such script from cron without human supervision?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant