diff --git a/ct/backrest.sh b/ct/backrest.sh index 6a6c13797..5094940e1 100644 --- a/ct/backrest.sh +++ b/ct/backrest.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}" var_ram="${var_ram:-512}" var_disk="${var_disk:-8}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" diff --git a/frontend/public/json/backrest.json b/frontend/public/json/backrest.json index 0c2fc5b60..40baf6608 100644 --- a/frontend/public/json/backrest.json +++ b/frontend/public/json/backrest.json @@ -12,7 +12,7 @@ "documentation": "https://garethgeorge.github.io/backrest/introduction/getting-started", "website": "https://garethgeorge.github.io/backrest", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/backrest.webp", - "config_path": "/opt/backrest/config/config.json", + "config_path": "/opt/backrest/config/config.json | /opt/backrest/.env", "description": "Backrest is a web-accessible backup solution built on top of restic and providing a WebUI which wraps the restic CLI and makes it easy to create repos, browse snapshots, and restore files. Additionally, Backrest can run in the background and take an opinionated approach to scheduling snapshots and orchestrating repo health operations.", "install_methods": [ { @@ -23,7 +23,7 @@ "ram": 512, "hdd": 8, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/install/backrest-install.sh b/install/backrest-install.sh index d549d728d..cc14b21c8 100644 --- a/install/backrest-install.sh +++ b/install/backrest-install.sh @@ -16,6 +16,13 @@ update_os fetch_and_deploy_gh_release "backrest" "garethgeorge/backrest" "prebuild" "latest" "/opt/backrest/bin" "backrest_Linux_x86_64.tar.gz" msg_info "Creating Service" +cat </opt/backrest/.env +BACKREST_PORT=9898 +BACKREST_CONFIG=/opt/backrest/config/config.json +BACKREST_DATA=/opt/backrest/data +XDG_CACHE_HOME=/opt/backrest/cache +EOF + cat </etc/systemd/system/backrest.service [Unit] Description=Backrest @@ -24,10 +31,7 @@ After=network.target [Service] Type=simple ExecStart=/opt/backrest/bin/backrest -Environment="BACKREST_PORT=9898" -Environment="BACKREST_CONFIG=/opt/backrest/config/config.json" -Environment="BACKREST_DATA=/opt/backrest/data" -Environment="XDG_CACHE_HOME=/opt/backrest/cache" +EnvironmentFile=/opt/backrest/.env [Install] WantedBy=multi-user.target