Proton bisync - caching or not?

What is the problem you are having with rclone?

general questions

Run the command 'rclone version' and share the full output of the command.

rclone 1.64.2

  • os/version: nixos 23.11 (Tapir) (64 bit)
  • os/kernel: 6.1.77 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.5
  • go/linking: dynamic
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

proton

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone bisync --resync --protondrive-enable-caching=false -v \
~/Cloud protondrive:Cloud

first question:
how's the boss when bisyncing to the cloud with the flag --resync? It seems to me the cloud version will override the local version?

second question:
as stated in the manual https://rclone.org/protondrive/#caching caching is only for one machine.
I have two systemd services one sync, one bisync to the same proton cloud. will this mess up the caching as described in the manual? should i in this case use --protondrive-enable-caching=false?

thank you in advance for your aswer!

best,

For files that exist on both sides, the default during --resync is that the version from Path1 will overwrite the version from Path2. So in your case, ~/Cloud would overwrite protondrive:Cloud (but of course, you could change that by just switching the order of the args.)

In v1.66 (currently available in beta), there is a new --resync-mode feature which allows much greater control over this. It allows you to specify things like --resync-mode newer (the newer file wins), --resync-mode larger (the larger file wins), --resync-mode path2 (the version from Path2 wins), etc. See the docs for more details.

I'm not a ProtonDrive expert, but my read of --protondrive-enable-caching is that the warning is talking about the VFS (the caching system used for rclone mount and rclone serve.) bisync and sync do not use the VFS (unless you are syncing into a mount or something, which I wouldn't recommend), so I don't think the --protondrive-enable-caching warning applies in your case. But perhaps another ProtonDrive user here can chime in here to confirm whether my read of the docs is correct.

What I would say, however, is that it's generally not a great idea to run multiple sync / bisync jobs concurrently to overlapping paths (of any remote), as that is inherently prone to race conditions. See FAQ

I would additionally caution that ProtonDrive is in beta and uses an unofficial API. There have been several reports here that it is not entirely stable at the moment, so I probably wouldn't recommend using it for anything too mission-critical.

thank you so very much Neil for answer my questions so thoroughly

For files that exist on both sides, the default during --resync is that the version from Path1 will overwrite the version from Path2. So in your case, ~/Cloud would overwrite protondrive:Cloud (but of course, you could change that by just switching the order of the args.)

ahh, just as easy as I thought! I will switch the args and that's it!

What I would say, however, is that it's generally not a great idea to run multiple sync / bisync jobs concurrently to overlapping paths (of any remote), as that is inherently prone to race conditions. See FAQ

good to know!

again, thank you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.