mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-11-05 13:14:48 +01:00
564 B
564 B
Docker
autorestic supports docker volumes directly, without needing them to be mounted to the host filesystem.
version: '3.8'
volumes:
data:
name: my-data
services:
api:
image: alpine
volumes:
- data:/foo/bar
locations:
foo:
from: my-data
type: volume
# ...
Now you can backup and restore as always.
autorestic backup -l hello
autorestic restore -l hello
The volume has to exists whenever backing up or restoring.
:ToCPrevNext