mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Improve description of group-accessible option
This commit is contained in:
@@ -160,6 +160,10 @@ The server can be started with `--prometheus` to expose [Prometheus](https://pro
|
|||||||
This repository contains an example full stack Docker Compose setup with a Grafana dashboard in [examples/compose-with-grafana/](examples/compose-with-grafana/).
|
This repository contains an example full stack Docker Compose setup with a Grafana dashboard in [examples/compose-with-grafana/](examples/compose-with-grafana/).
|
||||||
|
|
||||||
|
|
||||||
|
## Group-accessible Repositories
|
||||||
|
|
||||||
|
Rest-server supports making repositories accessible to the filesystem group by setting the `--group-accessible-repos` option. Note that permissions of existing files are not modified. To allow the group to read and write file, use a umask of `007`. To only grant read access use `027`. To make an existing repository group-accessible, use `chmod -R g+rwX /path/to/repo`.
|
||||||
|
|
||||||
## Why use Rest Server?
|
## Why use Rest Server?
|
||||||
|
|
||||||
Compared to the SFTP backend, the REST backend has better performance, especially so if you can skip additional crypto overhead by using plain HTTP transport (restic already properly encrypts all data it sends, so using HTTPS is mostly about authentication).
|
Compared to the SFTP backend, the REST backend has better performance, especially so if you can skip additional crypto overhead by using plain HTTP transport (restic already properly encrypts all data it sends, so using HTTPS is mostly about authentication).
|
||||||
|
|||||||
@@ -2,8 +2,9 @@ Enhancement: Support group accessible repositories
|
|||||||
|
|
||||||
Rest-server now supports making repositories accessible to the filesystem group
|
Rest-server now supports making repositories accessible to the filesystem group
|
||||||
by setting the `--group-accessible-repos` option. Note that permissions of
|
by setting the `--group-accessible-repos` option. Note that permissions of
|
||||||
existing files are not modified. To make an existing repository group-accessible,
|
existing files are not modified. To allow the group to read and write file,
|
||||||
use `chmod -R g+rwX /path/to/repo`.
|
use a umask of `007`. To only grant read access use `027`. To make an existing
|
||||||
|
repository group-accessible, use `chmod -R g+rwX /path/to/repo`.
|
||||||
|
|
||||||
https://github.com/restic/rest-server/issues/189
|
https://github.com/restic/rest-server/issues/189
|
||||||
https://github.com/restic/rest-server/pull/308
|
https://github.com/restic/rest-server/pull/308
|
||||||
|
|||||||
@@ -26,8 +26,9 @@ RestartSec=5
|
|||||||
# The following line must be customised to your individual requirements.
|
# The following line must be customised to your individual requirements.
|
||||||
ReadWritePaths=/path/to/backups
|
ReadWritePaths=/path/to/backups
|
||||||
|
|
||||||
# Set to `UMask=007` and pass `--group-accessible-repos` to rest-server to
|
# Files in the data repository are only user accessible by default. Default to
|
||||||
# make created files group-readable
|
# `UMask=077` for consistency. To make created files group-readable, set to
|
||||||
|
# `UMask=007` and pass `--group-accessible-repos` to rest-server via `ExecStart`.
|
||||||
UMask=077
|
UMask=077
|
||||||
|
|
||||||
# If your system doesn't support all of the features below (e.g. because of
|
# If your system doesn't support all of the features below (e.g. because of
|
||||||
|
|||||||
Reference in New Issue
Block a user