Use os.TempDir() for temporary directory in default path

This commit is contained in:
Enrico204
2021-08-23 11:43:06 +02:00
committed by Michael Eischer
parent 1172d7e068
commit 223520b964
3 changed files with 10 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ Flags:
-v, --version version for rest-server
```
By default the server persists backup data in `/tmp/restic`. To start the server with a custom persistence directory and with authentication disabled:
By default the server persists backup data in the O.S. 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:
```sh
rest-server --path /user/home/backup --no-auth