borgwarehouse/README.md

97 lines
4 KiB
Markdown
Raw Normal View History

2022-12-01 13:49:08 +01:00
<div align="center">
[![Next][Next.js]][Next-url]
[![React][React.js]][React-url]
</div>
<h3 align="center">BorgWarehouse</h3>
<p align="center">
A fast and modern WebUI for a BorgBackup's central repository server.
<br />
<a href="https://borgwarehouse.com"><strong>Explore the docs »</strong></a>
</p>
<div align="center">
<a href="https://borgwarehouse.com">
<img src="medias/borgwarehouse-og.png" alt="presentation">
</a>
</div>
2022-12-01 14:48:55 +01:00
## What is BorgWarehouse ?
**BorgWarehouse is a graphical interface to manage a central [BorgBackup](https://borgbackup.readthedocs.io/en/stable/#what-is-borgbackup) repository server.**
Today, if you want to have a large server on which you centralize backups of BorgBackup clients you have to do everything manually from the command line. It works, but in everyday life it can be complicated and adding, modifying, deleting repositories is always a bit long and tedious. If you want to do things right, you have to create a user on your server, associate him a public SSH key, give him a quota... in short **it's a bit of work**.
With BorgWarehouse, you have an interface that allows you to do all this simply and quickly :
2022-12-13 16:13:08 +01:00
- **add** repositories
- **edit** existing repositories
- **delete** repositories
- be **alerted** if there are no recent backups
- **monitor** the volume of data
- **flexibly manage quotas** for each repository
- ...
2022-12-01 14:48:55 +01:00
The whole system part is automatically managed by BorgWarehouse and **you don't have to touch your terminal anymore** while enjoying a visual feedback on the status of your repositories.
## Get started
You can find the documentation here : <a href="https://borgwarehouse.com/docs/prologue/introduction/">https://borgwarehouse.com/</a>
2022-12-01 13:49:08 +01:00
2022-12-01 14:48:55 +01:00
## :key: Environment Variables
2022-12-01 13:49:08 +01:00
To run this project, you will need to add the following environment variables to your `.env.local` file.
2023-02-28 10:36:34 +01:00
Required variables :
2022-12-01 13:49:08 +01:00
2022-12-13 16:13:08 +01:00
- `NEXTAUTH_URL` : The url of your application as **https://borgwarehouse.com**.
- `NEXTAUTH_SECRET` : A secret random key.
- `CRONJOB_KEY` : A secret API key for cronjob.
- `NEXT_PUBLIC_HOSTNAME` : FQDN as **borgwarehouse.com**
- `NEXT_PUBLIC_SSH_SERVER_PORT` : SSH port of your server as **22**.
- `NEXT_PUBLIC_SSH_SERVER_FINGERPRINT_RSA` : Your server SSH fingerprint for RSA.
- `NEXT_PUBLIC_SSH_SERVER_FINGERPRINT_ED25519` : Your server SSH fingerprint for ED25519.
- `NEXT_PUBLIC_SSH_SERVER_FINGERPRINT_ECDSA` : Your server SSH fingerprint for ECDSA.
2022-12-01 13:49:08 +01:00
Example for a valid `.env.local` file :
```bash
2023-04-01 21:21:30 +02:00
# Private variable
2022-12-01 13:49:08 +01:00
NEXTAUTH_URL=https://yourbwdomain.com
NEXTAUTH_SECRET=YOURFIRSTSECRET
CRONJOB_KEY=YOURSECONDSECRET
2023-02-28 10:36:34 +01:00
MAIL_SMTP_FROM=
MAIL_SMTP_HOST=
MAIL_SMTP_PORT=
MAIL_SMTP_LOGIN=
MAIL_SMTP_PWD=
MAIL_REJECT_SELFSIGNED_TLS=true
2023-04-01 21:21:30 +02:00
# Public variable (Any change need a rebuild of app)
2022-12-01 13:49:08 +01:00
NEXT_PUBLIC_HOSTNAME=yourbwdomain.com
NEXT_PUBLIC_SSH_SERVER_PORT=22
NEXT_PUBLIC_SSH_SERVER_FINGERPRINT_RSA=SHA256:36mfYNRrm1aconVt6cBpi8LhAoPP4kB8QsVW4n8eGHQ
NEXT_PUBLIC_SSH_SERVER_FINGERPRINT_ED25519=SHA256:tYQuzrZZMqaw0Bzvn/sMoDs1CVEitZ9IrRyUg02yTPA
NEXT_PUBLIC_SSH_SERVER_FINGERPRINT_ECDSA=SHA256:nTpxui1oEmH9konPau17qBVIzBQVOsD1BIbBFU5IL04
2023-02-28 10:36:34 +01:00
# Disable NextJS telemetry
NEXT_TELEMETRY_DISABLED=1
2022-12-01 13:49:08 +01:00
```
2022-12-13 16:13:08 +01:00
You can find more details about generating your secrets or retrieving your SSH fingerprint. You can find more details about generating your secrets or retrieving your SSH fingerprint <a href="https://borgwarehouse.com/docs/admin-manual/debian-installation/#configure-application-environment-variables">in the documentation</a>.
2022-12-01 13:49:08 +01:00
2023-01-27 18:17:22 +01:00
## How to update ?
2023-01-27 17:59:54 +01:00
Check the online documentation [just here](https://borgwarehouse.com/docs/admin-manual/how-to-update/) !
2022-12-01 13:49:08 +01:00
<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
2022-12-13 16:13:08 +01:00
[next.js]: https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white
[next-url]: https://nextjs.org/
[react.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB
[react-url]: https://reactjs.org/