How to Back Up Directly from One Remote Location to Another Using Restic and Rclone?

Hello Restic Community,

I’m currently working on a backup strategy that involves copying data directly from one remote location to another using Restic, with Rclone handling the remote storage. My goal is to efficiently back up data stored in one remote location (remote_to_backup) to another remote repository (dest_remote) in one go. I understand that the files must be downloaded locally (from remote_to_backup) and then uploaded to the remote destination (dest_remote).

Here’s what I’d like to achieve:

restic -r rclone:dest_remote:/path/to/backup-repo backup rclone:remote_to_backup:/my_important_files/

In essence, I want to use Restic’s backup command to directly back up files from remote_to_backup:/my_important_files/ to a Restic repository located at dest_remote:/path/to/backup-repo without needing to mount the source remote locally. Which currently would systematically translate to:

rclone mount --daemon remote_to_backup:/my_important_files/ /mnt/my_important_files
restic -r rclone:dest_remote:/path/to/backup-repo backup /mnt/my_important_files

My Questions:

  1. Is there a way to specify a source directory from a remote location (using Rclone) directly in the backup command, similar to the way we specify the destination repository?

  2. Are there any known workarounds, or should I consider mounting the source remote locally first and then performing the backup?

Any guidance or suggestions on how to accomplish this would be greatly appreciated. Thank you in advance for your help!