mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-23 05:30:33 +01:00
Frederik Ring
0bb94a2f56
* Set up documentation site using jekyll * Add workflow for deploying docs * Ini formatting is hard to read * Add instructions on how to run docs locally * Work through docs * Remove content from README * Miscellaneous fixes * Fix artifact upload
876 B
876 B
title | layout | parent | nav_order |
---|---|---|---|
Replace deprecated BACKUP_FROM_SNAPSHOT usage | default | How Tos | 16 |
Replace deprecated BACKUP_FROM_SNAPSHOT
usage
Starting with version 2.15.0, the BACKUP_FROM_SNAPSHOT
feature has been deprecated.
If you need to prepare your sources before the backup is taken, use archive-pre
, archive-post
and an intermediate volume:
version: '3'
services:
my_app:
build: .
volumes:
- data:/var/my_app
- backup:/tmp/backup
labels:
- docker-volume-backup.archive-pre=cp -r /var/my_app /tmp/backup/my-app
- docker-volume-backup.archive-post=rm -rf /tmp/backup/my-app
backup:
image: offen/docker-volume-backup:v2
environment:
BACKUP_SOURCES: /tmp/backup
volumes:
- backup:/backup:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
data:
backup: