You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new gauge metric `rest_server_repo_last_update_timestamp` was added to
monitor each repository's last write access. This allows a basic
monitoring for each repository's freshness.
In order to have this metric available at startup, a basic preloading for
Prometheus metrics has been implemented. This operates by scanning the file
system for restic repositories and using their last modified time.
Subsequently, each write access updates the last update time.
If scanning each repository takes too long, it can be disabled through the
`--prometheus-no-preload` flag.
This might be related to the feature request in #176.
Copy file name to clipboardExpand all lines: README.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,24 +32,25 @@ Usage:
32
32
rest-server [flags]
33
33
34
34
Flags:
35
-
--append-only enable append only mode
36
-
--cpu-profile string write CPU profile to file
37
-
--debug output debug messages
38
-
-h, --help help for rest-server
39
-
--htpasswd-file string location of .htpasswd file (default: "<data directory>/.htpasswd")
40
-
--listen string listen address (default ":8000")
41
-
--log filename write HTTP requests in the combined log format to the specified filename
42
-
--max-size int the maximum size of the repository in bytes
43
-
--no-auth disable .htpasswd authentication
44
-
--no-verify-upload do not verify the integrity of uploaded data. DO NOT enable unless the rest-server runs on a very low-power device
45
-
--path string data directory (default "/tmp/restic")
46
-
--private-repos users can only access their private repo
47
-
--prometheus enable Prometheus metrics
48
-
--prometheus-no-auth disable auth for Prometheus /metrics endpoint
49
-
--tls turn on TLS support
50
-
--tls-cert string TLS certificate path
51
-
--tls-key string TLS key path
52
-
-v, --version version for rest-server
35
+
--append-only enable append only mode
36
+
--cpu-profile string write CPU profile to file
37
+
--debug output debug messages
38
+
-h, --help help for rest-server
39
+
--htpasswd-file string location of .htpasswd file (default: "<data directory>/.htpasswd)"
40
+
--listen string listen address (default ":8000")
41
+
--log filename write HTTP requests in the combined log format to the specified filename
42
+
--max-size int the maximum size of the repository in bytes
43
+
--no-auth disable .htpasswd authentication
44
+
--no-verify-upload do not verify the integrity of uploaded data. DO NOT enable unless the rest-server runs on a very low-power device
45
+
--path string data directory (default "/tmp/restic")
46
+
--private-repos users can only access their private repo
47
+
--prometheus enable Prometheus metrics
48
+
--prometheus-no-auth disable auth for Prometheus /metrics endpoint
49
+
--prometheus-no-preload disable preloading Prometheus metrics during startup
50
+
--tls turn on TLS support
51
+
--tls-cert string TLS certificate path
52
+
--tls-key string TLS key path
53
+
-v, --version version for rest-server
53
54
```
54
55
55
56
By default the server persists backup data in the OS temporary directory (`/tmp/restic` on Linux/BSD and others, in `%TEMP%\\restic` in Windows, etc). **If `rest-server` is launched using the default path, all backups will be lost**. To start the server with a custom persistence directory and with authentication disabled:
0 commit comments