Can two rest-server processes serve the same path ?
Hello,
I do not find any hint in the documentation, if two rest-server processes can run on the same path. The use case for this is the following:
- I would like to run one rest-server as --append-only that recives my automated backups
- and have an other rest-server process listening to a different port that has a different --htpasswd-file and allows the deletion of backups.
Output of rest-server --version
rest-server version rest-server 0.13.0 compiled with go1.19.8 on linux/amd64
What should rest-server do differently?
Have documented if this works or not, ideally it would work
What are you trying to do? What is your use case?
Have a password saved on the clintes for append-only operations, and one not saved on the systems for "forget" and "prune" operations
Did rest-server help you today? Did it make you happy in any way?
Yes, thanks alot, great software
Running multiple rest-servers for the same data folder is safely possible since rest-server 0.11.0. Older versions also sort of work, but might be prone to weird behavior on concurrent access to the same repository.
Thanks alot!
Slight twist on this question, can we run one restic-server instance in append-only mode for backups clients, and then run a local copy of restic on the server itself, accessing the directories of the repo's, to run administrative actions on the server itself? (E.G via cron on server).
Just found this in the rest-server docs:
Rest Server uses exactly the same directory structure as local backend, so you should be able to access it both locally and via HTTP, even simultaneously.