Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to remote Rclone repository over SSH #56

Open
colans opened this issue Jun 15, 2023 · 3 comments
Open

Cannot connect to remote Rclone repository over SSH #56

colans opened this issue Jun 15, 2023 · 3 comments

Comments

@colans
Copy link

colans commented Jun 15, 2023

I'm not able to access a repository running via Rclone on a remote server over SSH. If I select the RCLONE method, and enter the "rclone:remote-storage:bucket_name" for the Bucket, I get:

Failed to open repository: Fatal: unable to open repo at rclone:remote-storage:bucket_name: cmd.Start: exec: "rclone": executable file not found in $PATH

Normally I run it like this:

  • /usr/bin/restic --option rclone.program="ssh username@example.com rclone" --option rclone.args="serve restic --stdio --b2-hard-delete --drive-use-trash=false --verbose" --repo rclone:remote-storage:bucket_name --password-file /etc/restic/password --verbose ${@}

Maybe there's no allowance for starting the REST server over SSH and running Rclone through the tunnel? Is this the problem?

The Restic documentation for this is at Other Services via rclone.

@mtissington
Copy link

I am seeing the same error but this is the command I use which works from terminal on macos

`restic -r rclone:onedrive:..... snapshots'

@emuell
Copy link
Owner

emuell commented Jan 14, 2024

There's an unpublished fix for the rclone PATH handling here: #92
You can download binaries containing this fix here: https://github.com/emuell/restic-browser/actions/runs/7425075508

The fix will lookup rclone in some "common" paths and also adds a command line arg to specify the path to rclone manually.
The rclone.args option is not supported, but can probably be set via rclone's regular environment settings. However, you will need to run Restic Browser from the terminal then to set the environment variables.

@mtissington
Copy link

Working - thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants