I’ve come up with a solution involving cron jobs (so for Linux users only, but what do I know, perhaps there are timed jobs in Windows as well).
Now that I’m thinking about it, it’s all a simple shell script away.
The script would trigger on launch of the computer (or whenever you want). Using the -u argument, we can sync/copy all files from the cloud to local storage, omitting any files that may be newer in our storage. After this command finishes, we push everything to the cloud again by swapping source and destination, again using the -u command (although not necessarily). This means we first get all the up-to-date files on our PC and then clone the directory to cloud again, updated.
The magic happens when you download to local, because your computer creates the most up-to-date version, keeping what you did on it and then pushing it to the cloud again. The -u flag is not really necessary to the second step, as we will have already downloaded all the stuff in the first command, so the computer will always upload an up-to-date version of the folder.
EXAMPLE TIME:
Let’s say I have a folder called Work on my PC (let’s call it A). I clone the file to the cloud © and download from C to my laptop (B). I then set up this system I outlined above.
What happens when I change 1 file in the Work folder on my laptop and trigger the two-way script?
First, my computer looks for any newer files in the cloud to download, but thanks to -u it doesn’t overwrite my updated file. THEN, it takes the whole Work folder and uploads it to the cloud.
If I then go to computer A, change another file and trigger two-way sync, the computer first downloads the file B updated, doesn’t overwrite the file A changed, and then uploads the up-to-date file to the cloud again.
Regardless of your version, you should probably set up a Startup script (Windows has something like that, create a bat file), or use a script that triggers on init. This way, if your computer is connected to the internet on boot, you can rest assured that once you turn your computer on, it’ll have the latest and greatest of your files downloaded to it automatically.
There is a fear in my head that this could lead to a great cock-up, but I don’t see where my logic is flawed. If you come up with a situation where the system won’t work and would potentially damage the files in the cloud, please let me know.