Anyone have a docker image for a restic server?

I have a server machine where I want to send restic backups via the internet. So it seems I should run the rest server on a port and set up a letsencrypt key with the right cron jobs to renew that key automatically.

Has anyone set up a Docker image that does everything you need? Something that gets configured with a directory where backups should be saved and a user/pass combo.

We have published a (very simple) docker image here: https://hub.docker.com/r/restic/rest-server/, the source code for the image is here: https://github.com/restic/rest-server/tree/master/docker

Did you know that the REST server is also available as a plugin to the Caddy web server? You can find it the docs here: https://caddyserver.com/docs/http.restic

It will automatically handle letsencrypt certs and HTTPS for you. The only thing that hasn’t been added yet (but should be really easy to do) is the append only mode. Apart from that it’s just a REST server with all the nice features that Caddy offers.

2 Likes

I have plans to improve Rest Server Docker image, so it is more configurable than it is now. Stay tuned…

2 Likes

I created a rest server for Restic too. https://github.com/flaviostutz/schelly-restic

Combining it with Schelly (http://github.com/flaviostutz/schelly) you can have a cron like scheduler with custom retention policies for managing the removal of old backups automatically.

1 Like