Star

Created With

linkDocker

autorestic supports docker volumes directly, without needing them to be mounted to the host filesystem.

docker-compose.yml
1linkversion: '3.8'

2link

3linkvolumes:

4link data:

5link name: my-data

6link

7linkservices:

8link api:

9link image: alpine

10link volumes:

11link - data:/foo/bar

.autorestic.yml
1linklocations:

2link foo:

3link from: my-data

4link type: volume

5link # ...

Now you can backup and restore as always.

1link$autorestic backup -l hello

1link$autorestic restore -l hello

The volume has to exists whenever backing up or restoring.

Docker

Home Quick Start Installation Configuration Upgrade

Locationschevron_right

Overview Hooks

Optionschevron_right

Cron Docker Volumes

Backendchevron_right
CLIchevron_right
Migrationchevron_right

Examples Docker QA Community Contributors