rest-server icon indicating copy to clipboard operation
rest-server copied to clipboard

Can two rest-server processes serve the same path ?

Open manonfgoo opened this issue 1 year ago • 4 comments

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

manonfgoo avatar Nov 30 '24 21:11 manonfgoo

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.

MichaelEischer avatar Dec 01 '24 16:12 MichaelEischer

Thanks alot!

manonfgoo avatar Dec 01 '24 16:12 manonfgoo

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).

MD7070B avatar Dec 11 '25 13:12 MD7070B

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.

MD7070B avatar Dec 12 '25 10:12 MD7070B