mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
15.17.2021 2259c8f0c9fb0693abf105a4e4d2e6ed8808e166
.ssh export
2 files modified
7 ■■■■ changed files
README.adoc 2 ●●● patch | view | raw | blame | history
borgbutler-docker/app/Dockerfile 5 ●●●●● patch | view | raw | blame | history
README.adoc
@@ -60,7 +60,7 @@
BorgButler working directory `$HOME/BorgButler` is assumed, but you may define any other.
1. Create your local BorgButler directory: `mkdir $HOME/BorgButler` (for config, caches, backups and restoring of backuped files and directories)
2. `docker run -v $HOME/BorgButler:/BorgButler -v  $HOME/.ssh:/home/borgbutler/.ssh -p 127.0.0.1:9042:9042 --name borgbuttler kreinhard/borgbutler` (exporting of `.ssh` is useful for ssh remotes, otherwise skip this setting.)
2. `docker run -v $HOME/BorgButler:/BorgButler -v  $HOME/.ssh:/home/borgbutler/ssh:ro -p 127.0.0.1:9042:9042 --name borgbuttler kreinhard/borgbutler` (exporting of `.ssh` is useful for ssh remotes, otherwise skip this setting.)
3. Stopping: simly click `CTRL-C`.
4. Restart: `docker start`
5. Stop: `docker stop`
borgbutler-docker/app/Dockerfile
@@ -11,6 +11,11 @@
# Grant access for user projectforge:
RUN chown borgbutler.borgbutler /BorgButler
VOLUME /BorgButler
RUN mkdir /home/borgbutler/.ssh
RUN chown borgbutler.borgbutler /home/borgbutler/.ssh
VOLUME /home/borgbutler/.ssh
EXPOSE 9042
USER borgbutler:borgbutler