Hi there, what method would you recommend for backing up a remote folder (e.g. one hosted with a cloud service provider or on an SFTP drive) to a local backup on my laptop? I imagine Restic is used far more option for remote backups of local folders, but in my case, I’d like to be able to store a backup of my SFTP drive on an external drive connected to my computer.
One option is to mount the SFTP drive via Rclone, then use Restic to back up the mounted folder to my external drive. This works fine, but if there’s a way to bypass the mounting operation, that would be ideal (since mounting can take up a decent amount of hard drive space, at least in the near term, if I use certain vfs-cache-mode settings.)
Another option, in my case, would be to just connect the external drive to the SFTP server. That will generally work fine, but it would be nice to be able to update the external drive’s contents when I’m not able to access the server.
I thought that I could try reversing the syntax of the code described in this section of the Rclone documentation to achieve this setup, as shown in the following example:
restic -r /home/myusername/local_repo --verbose backup rclone:remote_to_backup:/folder_to_backup
Unfortunately, this didn’t work, as Restic reported that rclone:remote_to_backup:/folder_to_backup did not exist.
Thanks in advance for your help!