-
Notifications
You must be signed in to change notification settings - Fork 23
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
Ideas for BorgServer v2 - incl. breaking changes! #6
Comments
I've done a bit of work for the second point here : #7 This adds the possibility to pull from a git repo and update the keys using a cronjob As a side note (not related):
|
@abate: But feel free to contribute a alpine-based Dockerfile! We could add it as an additional tag to the project :) On Bash: |
I've played with alpine and borgbackup is already in alpine 3.10 ! so there is no pulling from source. https://github.com/abate/docker-borgserver/blob/alpine/Dockerfile.alpine I'm going to test it a bit more and maybe I'll propose another MR. You could simply have the |
May I add a suggestion? :) After having installed this on server and a couple of clients, both local and remote, I think the /sshkeys/clients "hack" you made in run.sh is really clever, considering how it has to integrate with BB -- but the practical implementation confuse me a bit. When you create keys they're traditionally called id_rsa and id_rsa.pub. To not have your host become something.pub you'd have to rename the public key to something else, and it will no longer be obvious what you're looking at. My suggestion is to change from /sshkeys/clients/whatever to /sshkeys/whatever/id_rsa.pub - with whatever being whatever you want to call the client. This would also allow you to store your private key in the same directory, and you could give the client a sensible name and still know that your id_rsa.pub key is what it is. If the directory isn't host, it is by definition a client so the clients directory isn't really necessary IMO. I'd be happy assisting in the rewrite if that is any help. Like you I'm a veteran Linux sysadmin comfortable with shell scripting. PS. For now I actually implement this by adding my keys as above and linking them to the clients directory (unfortunately symlinks cause the server to not want to start) |
TL;DR: No. What if you're machine is called 'host'? we would have to move it somewhere else, to avoid collisions.. also the path is called |
It was my understanding the names are just what you decide to call the servers, so in the unlikely situation that you have a server called host you can just call it something else. Anyway, no big deal, like I explained I actually find my work-around works 98% perfectly. If I could use symlinks it would be 99% (I like to see how things link together). |
Could you support 1 read/write ssh key and 1+ read only key in one repos? |
BorgServer v2
Ideas:
-> Only root can expose ports < 1024 on linux, so the defaut port would change
AuthorizedKeysCommand
")I think i would simply provide both methods using labels, :latest would stay directory based.
@abmaonline do you got anything in mind?
The text was updated successfully, but these errors were encountered: