Star

Created With

linkDocker

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

docker-compose.yml
1linkversion: '3.7'

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 - name: hello

3link from: volume:my-data

4link to:

5link - remote

6link

7linkbackends:

8link - name: remote

9link # ...

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

Examples QA Community Contributors