Rclone local repository

Hello

As I’m not able to find any clear explanation, can someone please tell me what the “local repository” option is for and what it should be set to?

One post eluded to it being for temporary files but there’s no logical reason for this. If that’s true (or forgive my ignorance), when referencing local files, you still do not need to specify a local repository.

rclone copy /path/to/folder remote:path/to/destination/folder

The above works perfectly fine.

The documentation says:

–rclone-local-repository (String)
Local repository for Rclone. Make sure it is configured as a local drive, as it needs access to the files generated by Duplicati.
Default value: local

It doesn’t specify what path the local repository needs to be configured to within rclone.

Also, how will Duplicati know what path the local repository is? Is it reading the rclone configuration? If so, does that mean Duplicati is generating files directly to the local repository path and then uploading or is it generating the files to a temporary folder, copying to the local repository path and then asking rclone to upload it? If it’s the latter then it’s a waste of resources.

Please advise?

It indeed is a parameter that should not have existed, but I did not realize you could just specify the path in rclone.

You need to create a local repo in rclone and specify that repo on duplicati config.

I do not have a build environment anymore so can’t correct it.

I stumbled upon the same problem in 2024 and the parameter still exists

However I do not see a rclone command to configure a local repository, just remote ones.

And I do not get a clear grasp on how this might work with duplicati to be honest.

My best guess would be to just leave the default value as it is local for the field?

I am pretty sure it has something to do with Local Filesystem rclone local setup, but I don’t get the point of doing it or how…

Can someone clarify or at least update the documentation with an example to how it works maybe? How to setup etc.

Would be very much appreciated and thanks a lot.


Additional Notes:

I want to backup a folder /data/syncthing/Test to pCloud with the following remote pcloud-test:.

The following command works and lists my remote (with no content yet)

#> rclone tree pcloud-test:Test
/

0 directories, 0 files

This is my duplicati rclone configuration

And this is the error I get after running the backup

As a sidenote I have installed duplicati in a docker compose environment
on a Raspberry Pi 5 and rclone installed inside the container (just for testing).
The /data is made available as a volume mount inside the container to /source.

rclone.conf looks like

# ~/.config/rclone/rclone.conf
[pcloud-test]
type = pcloud
token = {"access_token":"<TOKEN>","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
hostname = eapi.pcloud.com

I was able to solve this on my own and will post the answer myself:

  1. Setup a remote with name local with rclone config
  2. n) new remote
  3. Name: local
  4. Type of Storage: 30 / Local Disk

After this my rclone.conf looks like:

# ~/.config/rclone/rclone.conf
[pcloud-test]
type = pcloud
token = {"access_token":"<TOKEN>","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
hostname = eapi.pcloud.com

[local]
type = local

Then continue configuring duplicati:

  • Storage Type: rclone
  • Local Repository: local
  • Remote Repository: pcloud-test
  • Remote Path: Test (I created this folder on pcloud first …)

That’s it after running the Backup and test the restore, it all worked as expected and the file is backuped and restored smoothly as it should.

1 Like