updated cron config and removed old commands
This commit is contained in:
@@ -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/.*",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user