Fabien BOURGEOIS
cf48101dfb
* 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.
20 lines
378 B
Docker
20 lines
378 B
Docker
FROM centos:7
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
ENV SOURCE /var/lib/docker/volumes
|
|
ENV DEST /var/backups/
|
|
|
|
RUN yum -y install gettext rsync ssh sshpass cronie
|
|
|
|
# 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.c7.sh launch.sh
|
|
|
|
CMD bash launch.sh
|