diff --git a/README.md b/README.md index 340c5f6..6580c21 100644 --- a/README.md +++ b/README.md @@ -273,7 +273,7 @@ A collection of delicious docker recipes. - [x] dnsmasq-arm - [x] pdnsd -## 3rd-party +## 3rd-party (sorted by basename) - [x] docker.bintray.io/jfrog/artifactory-oss - [x] tutum/builder @@ -313,7 +313,6 @@ A collection of delicious docker recipes. - [x] jenkins - [x] sonatype/nexus3 - [x] jupyter/notebook -- [x] kylemanna/openvpn - [x] metabase/metabase - [x] metasploitframework/metasploit-framework :skull: - [x] minio/minio @@ -323,6 +322,7 @@ A collection of delicious docker recipes. - [x] luzifer/nginx-sso - [x] odoo - [x] osixia/openldap +- [x] kylemanna/openvpn - [x] campbellsoftwaresolutions/osticket - [x] owncloud - [x] phpmyadmin @@ -332,6 +332,7 @@ A collection of delicious docker recipes. - [x] postgrest/postgrest - [x] prosody/prosody - [x] registry +- [x] restic/rest-server - [x] rocket.chat - [x] rundeck/rundeck - [x] wonderfall/searx diff --git a/rest-server/README.md b/rest-server/README.md new file mode 100644 index 0000000..748299e --- /dev/null +++ b/rest-server/README.md @@ -0,0 +1,56 @@ +rest-server +=========== + +[Rest Server][1] is a high performance HTTP server that implements [restic][2]'s REST backend API. + +## server + +```bash +$ docker-compose up -d + +$ docker-compose exec rest-server create_user user +New password: pass +Re-type new password: pass +Adding password for user user + +$ tree -a data +data +└── .htpasswd +``` + +## client + +```bash +$ export RESTIC_REPOSITORY=rest:http://user:pass@localhost:8000/test/ +$ export RESTIC_PASSWORD=****** + +$ restic init + +$ restic backup /root/.bashrc + +$ restic check + +$ restic snapshots +ID Time Host Tags Paths +-------------------------------------------------------------------- +8f7d2fcf 2019-12-30 09:25:15 vultr /root/.bashrc +-------------------------------------------------------------------- + +$ restic dump latest /root/.bashrc + +$ mkdir -p /mnt/test +$ restic mount /mnt/test +$ tree -a /mnt/test/snapshots/ +├── 2019-12-30T09:25:15Z +│   └── root +│   └── .bashrc +└── latest -> 2019-12-30T09:25:15Z + +$ restic restore latest --target /tmp/test +$ tree -a /tmp/test/ +└── root + └── .bashrc +``` + +[1]: https://github.com/restic/rest-server +[2]: https://github.com/restic/restic diff --git a/rest-server/docker-compose.yml b/rest-server/docker-compose.yml new file mode 100644 index 0000000..83b04e1 --- /dev/null +++ b/rest-server/docker-compose.yml @@ -0,0 +1,9 @@ +rest-server: + image: restic/rest-server + ports: + - "8000:8000" + volumes: + - ./data:/data + environment: + - DISABLE_AUTHENTICATION=true + restart: unless-stopped