I have at the moment not directly a problem, but need help how to implement my idea.
I have a Synology DS215J. I managed to install rClone and to start a webdav server. Also I managed to connect my pcloud account and I set a task, so that the webdav server is started at bootup.
But I want to sync two different cloud-accounts with the NAS.
Is it possible to create two webdav server or is there another idea how to do this?
(At the moment the 2nd account does not exist, so I want to know before which possibilities I have.
A direct connection between pCloud and Cloud Sync via webdav is not working fine. Remote changes are recognized after a lot of hours. No idea why. With rclone it is very fast (at the moment the standard 5 minutes)
What is your rclone version (output from rclone version)
v1.57.0
Which cloud storage system are you using? (eg Google Drive)
pCloud
The command you were trying to run (eg rclone copy /tmp remote:tmp)
At the moment the task planer is running as root:
#!/bin/sh
rclone serve webdav pcloud: --addr :5005 --user "xxx" --pass "xxx" --config "path" --cache-dir "path" --vfs-cache-mode writes
But the Sync command works only in one direction. I need a two-way sync.
That is why I used "serve webdav". So rclone is only "man-in-the-middle" and cloudsync is doing everything else.
Hereby the question is how to manage two accounts. Are two webdav server possible or is it possible to use two rcloud configs for the webdav server?
Or a complete different option? With bi-directional Sync.
So I want to use the cloud accounts separately.
I sync my files with some folders on the NAS.
My wife sync her files with some other folders on the NAS.
So it is not necessary to sync between both remotes.
You mean I have to set up a task on bootup for every user with rclone and webdav, but with different rclone-config?
Is the webdav server then only running each for the corresponding user?
At least it was possible to run my script above with owner "myself" instead of root. But in the log file is mentioned root:
2021/12/03 22:27:27 NOTICE: pcloud root '': WebDav Server started on http://[::]:5005/
Perhaps I simply have to try it if one webdav server is overwriting the other one.
I'm not quite sure your flow as I tried to read through it a few times.
To sync two remotes, you don't need to serve anything.
You can make 2 WebDav remotes and just run rclone sync remotea: remoteb:
That's independent of rclone serve.
If you want to share out 2 WebDav remotes from whatever you want, you would have to run 2 serve commands or potentially, you could make a union remote of the two and just serve them like that.
I want to sync files from my plcoud account with some folders on the NAS.
My wife sync files from her plcoud acount with some other folders on the NAS.
So both syncs are completely indepented from each other. So I have to create two serves or use the union, if it works. Thank you.
The term 'remote' in rclone is just another way to say a source or destination. Every command has a local path or remote to it. A remote can be local disk. A remote can be a cloud provider.