looking for a way to do continuous sync using rclone.
similar to the syncing clients that google, mega or yandex provide, but I find rclone more reliable - especially on linux. Additionally, rclone crypt is helpful.
I know rclone can only do 1 way sync, while they can do 2 way syncing - but will have to settle for that for now - if possible.
What is your rclone version (output from rclone version)
[adminuser@adminuser-pc ~]$ rclone version
rclone v1.49.5
os/arch: linux/amd64
go version: go1.13.1
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Linux Manjaro 64 bit
Which cloud storage system are you using? (eg Google Drive)
mega
yandex
google drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
looking for relevant command/script with guide. if it can be run from rclone browser or only command line.
That would make both places have all files if that's all you want.
It's wise to have something in the script that prevents multiple identical jobs from overlapping. Animosity shows and example in his script, and this example shows the same principle using a lockfile.
#!/bin/bash #Lock the file so only one of these scripts can run at once.
lockfile -r 0 /tmp/uploadscript.lock || exit 1
Pardon me, but Rclone is a synchronization tool. Including the slogan: "rsync for cloud storage"
As the most sophisticated uses are related to mount, etc., sometimes the sync function is relegated to the background, but Rclone is the only tool (AFAIK) that does it efficiently in a cloud environment.
Always be careful with experimenting with sync, because sync has the permission to potentially delete files. If you run it without being use what will happen, you could potentially lose data.
default behavior on copy is to update older files and not transfer over newer files - so that's covered. You would end up wiht only the most recently edited file in both places.
As for "resolving conflicts" you have to be a bit more spesific about what you mean.
This is just a really basic example. I'd have to know the exact behavior you wanted to see if you wanted me to give you something more specific. "2-way sync" is not strictly defined and you could interpret that in a variety of ways. It only tells me you want files to go both ways - not exactly what you want to have happen to them in when condition A, B or C applies.
The good thing about rclone is you have the flexibility to do basically any behaviour you want, as you have plenty of tools to work with. It would help to read up a bit about what the default behaviour of copy, move and sync is. Then we can always modify these with optional flags if needed.