updated cron config and removed old commands

This commit is contained in:
2020-11-17 23:02:41 -05:00
parent 0590bee37f
commit c84bdead8b
3 changed files with 4 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "duplicacy",
"version": "20201117.19",
"version": "20201117.20",
"slug": "duplicacy",
"description": "Duplicacy backup",
"arch": ["armhf", "armv7"],
@@ -15,7 +15,7 @@
"ssh_password": "password",
"server": "server.example.com",
"path": "/opt/some/folder/on/on/server",
"crontab_run": "*/5 * * * *",
"crontab_run": "0 2 * * 5",
"filters": [
"i:addons/.*",
"i:backup/.*",

View File

@@ -3,9 +3,6 @@ FROM ${BUILD_FROM}
ENV LANG C.UTF-8
# Install cron
#RUN apt -y install cron
# Copy data for add-on
COPY run.sh /
COPY duplicacy_linux_arm_2.7.2 /duplicacy

View File

@@ -25,16 +25,7 @@ sed --in-place 's~<BACKUP_SERVER_PATH>~'${BACKUP_SERVER_PATH}'~' /.duplicacy/pre
# create the filters file
echo ${FILTERS} | jq -r '.[]' >> /.duplicacy/filters
# backup all the data using cron
#echo "${CRONTAB_RUN} /duplicacy -verbose -log backup -stats" >> /etc/cron.d/duplicacy
echo "${CRONTAB_RUN} /duplicacy -verbose -log backup -stats" >> /etc/crontabs/root
# Give execution rights on the cron job
#chmod 0644 /etc/crontabs/root
# Apply cron job
#crontab /etc/crontabs/root
/usr/sbin/crond -f -l 1
# Create the log file to be able to run tail
#touch /var/log/cron.log
# Run the command on container startup
#cron && tail -f /var/log/cron.log
# run the cron daemon in the forground
/usr/sbin/crond -f