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

How to create client-server connexion for openmediavault-borgbackup plugin #40

Open
zandet97 opened this issue Dec 15, 2022 · 3 comments

Comments

@zandet97
Copy link

Hello,

I have been trying for several hours to find out how to connect my machine A (openmediavault, where the borgbackup plugin has been installed on the Workbench) to a machine B (ubuntu) with borgbackup installed. I would like to make backups of data located on machine A to machine B using borg (machine B must have all the backups (archive). I followed a few tutorials, including one on the official documentation, but I don't still don't understand how to configure SSH keys. I'm stuck at this step!
I have already created the public and private key on machine A using ssh_keygen. Is it on machine A that I have to create the public and private keys or on machine B?
Is the next step to copy the public key (created by machine A) to machine B? If yes, how to proceed please? (which commands? in which folder should I copy this key? etc.)
Also from the borgbackup plugin (machine A, Workbench), I added an environment variables to indicate where my private key is :
Nom : BORG_RSH
Valeur : ssh -i /root/.ssh/id_borg-backup-plugin

Can you clearly tell me how to proceed please, because the different tutorials are given on different dates, it is difficult to follow correctly. Some even no longer seem relevant for the current version of the borgbackup plugin?

Thank you beforehand.

My System :
Debian 11, bullseye
Linux openmediavault 5.16.0-0.bpo.4-amd64 #1 SMP PREEMPT Debian 5.16.12-1~bpo11+1 (2022-03-08) x86_64 GNU/Linux
openmedivault information :
Release : 6.0.24-1
Codename : Shaitan

@ryecoaaron
Copy link
Member

It would be better to create a forum post since more people see it.

The only part of this guide that should have changed, you don't have to use the command line for the BORG_RSH environment variable.

@ryecoaaron
Copy link
Member

You should update your system as well. You are using all old packages from the ISO.

@zandet97
Copy link
Author

zandet97 commented Dec 16, 2022

It would be better to create a forum post since more people see it.

The only part of this guide that should have changed, you don't have to use the command line for the BORG_RSH environment variable.

I did not modify the environment variable from the command line but from the user interface of the borg plugin (Workbench omv) (there is a section intended for the environment variable for borg plugin)

image

I followed the guide but it does not explain how to configure the SSH keys for the plugin (Different steps to create and configure the keys on machines A and B)

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

2 participants