mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-12-23 00:36:25 +00:00
614 B
614 B
Docker
autorestic supports docker volumes directly, without needing them to be mounted to the host filesystem.
version: '3.7'
volumes:
data:
name: my-data
services:
api:
image: alpine
volumes:
- data:/foo/bar
locations:
- name: hello
from: volume:my-data
to:
- remote
backends:
- name: remote
# ...
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