forked from restic/rest-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
address feedback, fix typo in example command
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Enhancement: can now listen on a unix socket | ||
Enhancement: Support listening on a unix socket | ||
|
||
If `--listen unix:/tmp/foo` is passed, the server will listen on a unix socket. This is triggered by the prefix `unix:`. | ||
To let rest-server listen on a unix socket, prefix the socket filename with `unix:` and pass it to the `--listen` option, for example `--listen unix:/tmp/foo`. | ||
|
||
This is useful in combination with remote port portforwarding to enable remote server to backup locally, e.g. | ||
This is useful in combination with remote port forwarding to enable remote server to backup locally, e.g. | ||
|
||
```bash | ||
``` | ||
rest-server --listen unix:/tmp/foo & | ||
ssh -R /tmp/foo:/tmp/foo user@host restic -r rest:http+unix:/tmp/foo:/repo backup | ||
ssh -R /tmp/foo:/tmp/foo user@host restic -r rest:http+unix:///tmp/foo:/repo backup | ||
``` | ||
|
||
https://github.com/restic/rest-server/pull/272 |