Skip to content

Add Backrest web backup #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions blueprints/backrest/backrest.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions blueprints/backrest/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
services:
backrest:
image: garethgeorge/backrest:v1.7.3
restart: unless-stopped
ports:
- 9898
environment:
- BACKREST_PORT=9898
- BACKREST_DATA=/data # where it stores current state data
- BACKREST_CONFIG=/config/config.json # where it stores backup configurations
- XDG_CACHE_HOME=/cache # backup cache
- TZ=${TZ}
volumes:
- backrest/data:/data
- backrest/config:/config
- backrest/config:/cache # to preserve backup cache between restarts
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you should perhaps use backrest/cache here, or even the backrest-cache volume (even better)

- /:/userdata:ro # we mount /mnt/data to /userdata (that we want to backup)

volumes:
backrest:
backrest-cache:
11 changes: 11 additions & 0 deletions blueprints/backrest/template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
variables:
main_domain: ${domain}

config:
domains:
- serviceName: backrest
port: 9898
host: ${main_domain}
env:
- TZ=Europe/Paris
mounts: []
Loading