generated from kelin/Compose-Template
56 lines
1.5 KiB
Markdown
56 lines
1.5 KiB
Markdown
# Backrest
|
|
|
|
## https://backrest.jasper.kelinreij.duckdns.org
|
|
|
|
## Local Configuration - **Use if Traefik is on the same server**
|
|
|
|
### Timezone
|
|
* TZ=America/New_York
|
|
|
|
### Location of stacks to backup
|
|
* BACKUP_STACKS_DIR=/opt
|
|
|
|
### Location of user's home directory
|
|
* BACKUP_HOME_DIR=/~
|
|
|
|
### Location to store backups
|
|
* BACKUP_DIR=/mnt/restic-usb
|
|
|
|
### The url to use for this servevice without the https://
|
|
|
|
* HOST_LABEL='traefik.http.routers.backrest.rule=Host(`backrest.server.subdomain.duckdns.org`)'
|
|
|
|
> Replace server with the server's host name, and subdomain with your duckdns subdomain
|
|
|
|
## Remote Configuration - **Use if Traefik is on a different server**
|
|
|
|
### **Labels are ignored in this scenerio**
|
|
|
|
### Use a remote host yml file on the Traefik server instead.
|
|
|
|
1. Copy remote-backrest.yml to Traefik's dynamic folder
|
|
|
|
2. Or Paste the contents of remote-backrest.yml into an existing remote host yml file.
|
|
|
|
|
|
## Remote Host yml files must use this format:
|
|
|
|
```yaml
|
|
http:
|
|
routers:
|
|
# Each service gets a route definition here
|
|
|
|
services:
|
|
# Each service gets a service definition here
|
|
```
|
|
|
|
**To copy an example remote host yml file into an existing remote host yml file**
|
|
|
|
1. Copy the contents of the routers section into the existing routers section
|
|
Be sure to change the `rule: "Host ('service.server.subdomain.duckdns.org')"` line to your desired url for the service
|
|
|
|
2. And Copy the content of the services section into the existing services section
|
|
Be sure to change the ip:port in `- url: "http://ip:port"`
|
|
Use http here, not https
|
|
|