https://github.com/voronenko/nas-borg
Traefik enabled backup container
https://github.com/voronenko/nas-borg
Last synced: 9 months ago
JSON representation
Traefik enabled backup container
- Host: GitHub
- URL: https://github.com/voronenko/nas-borg
- Owner: Voronenko
- Created: 2021-08-19T13:35:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T15:45:35.000Z (over 4 years ago)
- Last Synced: 2025-04-15T01:15:32.735Z (9 months ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nas-borg
## Configuring your repos on a serverside
Create authorized_keys file under config/. You should provide repository name with optional additional relative path,
referred as REPO_NAME below and provide the public key to use - YOURKEY.
```sh
cat config/authorized_keys
# command="mkdir -p ${REPO_PATH}/REPO_NAME && cd ${REPO_PATH}/REPO_NAME && borg serve --restrict-to-path ${REPO_PATH}/REPO_NAME ",restrict YOURKEY
```
```sh
borg init --encryption=SPECIFY ssh://borg@127.0.0.1:2200/repository/REPO_NAME
```
```sh
borg create --stats ssh://borg@127.0.0.1:2200/repository/REPO_NAME::{hostname}-{utcnow} ~/documents ~/files
```
## Regular backups
Consider using raw borg executable, some wrapper like borgmatic (see `borgmatic-example`), or even UI, like vorta
## Credits
Original version was heavily inspired for home nas usage from https://github.com/fphammerle/docker-borgbackup-sshd.
All original credits to author.