22 lines
467 B
Docker
22 lines
467 B
Docker
FROM debian:jessie
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
ENV SOURCE /var/lib/docker/volumes
|
|
ENV DEST /var/backups/
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
cron gettext-base rsync python-minimal libpython-stdlib
|
|
|
|
# Avoid overlayfs bug with tail
|
|
VOLUME /var/log
|
|
|
|
COPY crontab /etc/crontab
|
|
RUN chmod 644 /etc/crontab
|
|
|
|
WORKDIR /opt/backup
|
|
COPY rsync.template .
|
|
COPY plan.tpl.py .
|
|
COPY launch.sh .
|
|
|
|
CMD bash launch.sh
|