mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-06-22 06:39:07 +00:00
Delete strategy moved to new file, as could custom
This commit is contained in:
parent
3011a8770a
commit
6b6656c540
3 changed files with 18 additions and 9 deletions
|
@ -32,10 +32,10 @@ ENV CRON_TIME="0 3 * * sun" \
|
|||
TIMEOUT="10s" \
|
||||
MYSQLDUMP_OPTS="--quick"
|
||||
|
||||
COPY ["run.sh", "backup.sh", "restore.sh", "/"]
|
||||
COPY ["run.sh", "backup.sh", "restore.sh", "/delete.sh", "/"]
|
||||
RUN mkdir /backup && \
|
||||
chmod 777 /backup && \
|
||||
chmod 755 /run.sh /backup.sh /restore.sh && \
|
||||
chmod 755 /run.sh /backup.sh /restore.sh /delete.sh && \
|
||||
touch /mysql_backup.log && \
|
||||
chmod 666 /mysql_backup.log
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue