Closed dekiesel closed 3 years ago
Of course after creating this issue I had the idea to just give it an absolute path like so emborg borg key export 12345@rsync.net:borg_rpi /home/pi/ .config/emborg/borg.ke
, which works as expected.
Is there an advantage to using this command over simply copying the key from the keys directory?
Unlike Borg, Emborg is designed to be run from any directory. To make this work with Borg it changes the working directory to working_dir before running select commands. If working_dir is not specified then Emborg changes to /
before running the borg command.
I don't know whether there are any disadvantages to simply copying the key from the keys directory.
Ah, that makes sense and works now. I got working_dir
mixed up with src_dir
, thanks for the help!
I also checked the resulting file against the file I copied manually and they are identical.
I realize this is probably more of a forum-question kinda thing, but I couldn't find one, so here goes nothing:
I created a repo using
emborg
and uploaded some test data to it (rsync.net account). I was warned to extract my key, so I tried doing that:It seems the process CWDs to ´/´ and then has a hard time creating a file there. Does that mean that I have to use
sudo
when extracting the key?emborg info
shows me where the keyfile is saved:/home/pi/.config/borg/keys/...
, can't I just copy the keyfile from there?Thanks for your help!