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

Feature request: Back up to a borg repo at an .onion address #1275

Open
andersaamodt opened this issue Apr 26, 2022 · 7 comments
Open

Feature request: Back up to a borg repo at an .onion address #1275

andersaamodt opened this issue Apr 26, 2022 · 7 comments
Labels
type:enhancement Improvement of an existing function

Comments

@andersaamodt
Copy link

I tried to use Vorta for this previously and wasn't able to. It is possible to use borgbackup over tor with torify. It would be great if Vorta could do this, I would definitely use it then. Right now I my choice is between tor and a GUI which is a hard choice!

@real-yfprojects
Copy link
Collaborator

How do you torify borg? Do you have a guide for torification? And most importantly the torify HOWTO warns that one should know what one is doing when using torify. So how do you ensure torification works with borg and nothing is leak over DNS or such?

@andersaamodt
Copy link
Author

andersaamodt commented Apr 30, 2022

The script I use has:

export BORG_REPO="ssh://username@longonionaddress.onion:22/path/to/borg/repo/on/server/repo-name"

export BORG_RSH="torify ssh -i /home/myusername/path/to/mysshkey"

It also exports BORG_PASSPHRASE.

Then it just does a borg create command followed by a borg prune and outputs success as a system alert using notify-send.

Maybe this could be improved or updated by someone who knows tor better, but it works reliably and the traffic goes over tor so presumably it is pretty secure and better than no tor.

@andersaamodt
Copy link
Author

Apparently it is best practice to use torsocks instead of torify, but they are identical. documentation on torsocks

@real-yfprojects
Copy link
Collaborator

Apparently it is best practice to use torsocks instead of torify, but they are identical. documentation on torsocks

They are used identically but probably differ nonetheless.
You can set the rsh parameter by entering --rsh "torify ssh -i /home/myusername/path/to/mysshkey" in the LineEdit in schedule tab but this will only change the behaviour of borg create.

@real-yfprojects real-yfprojects added the type:enhancement Improvement of an existing function label May 1, 2022
@real-yfprojects
Copy link
Collaborator

Maybe development on #379 can fix this issue too.

@andersaamodt
Copy link
Author

Any movement on this?

@real-yfprojects
Copy link
Collaborator

Nope. If you have time, you could try to summarize #379 and identify further steps towards resolving the issue. I am thinking of tasks like making a feature list and description, answering open design questions and drawing a GUI mockup.

I think this issue can be resolved by resolving #379 since pre and post borg hooks could set environment variables like BORG_RSH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Improvement of an existing function
Projects
None yet
Development

No branches or pull requests

2 participants