docker_images/backups/rsyncvolumes/Dockerfile
Fabien BOURGEOIS cf48101dfb [IMP][ADD]RsyncVolumes : allow options and remote sync
* Do not use envsubst anymore but python os.environ ;
* Options for config : PLAN, SOURCE and DEST, EXCLUDE_WORDS ;
* Add synchronization with rsync+SSH with REMOTE env variables.
2021-03-12 19:48:43 +01:00

21 lines
462 B
Docker

FROM debian:stretch
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 ssh sshpass python-minimal libpython-stdlib
# Avoid overlayfs bug with tail
VOLUME /var/log
WORKDIR /opt/backup
COPY crontab ./crontab
COPY rsync.template .
COPY plan.py .
COPY remote.py .
COPY launch.sh .
CMD bash launch.sh