added back in run parts into cron

This commit is contained in:
2020-11-18 11:36:24 -05:00
parent 009bf6193a
commit d14d4544cb
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "duplicacy",
"version": "20201118.1",
"version": "20201118.2",
"slug": "duplicacy",
"description": "Duplicacy backup",
"arch": ["armhf", "armv7"],

View File

@@ -27,6 +27,6 @@ sed --in-place 's~<BACKUP_SERVER_PATH>~'${BACKUP_SERVER_PATH}'~' /.duplicacy/pre
echo ${FILTERS} | jq -r '.[]' >> /.duplicacy/filters
# backup all the data using cron and then remove the
echo "${CRONTAB_RUN} /duplicacy -verbose -log backup -stats; find /backup/* -type f -name '*.tar' -mtime +${DAYS_TO_KEEP} -exec rm {} \;" >> /etc/crontabs/root
echo "${CRONTAB_RUN} run-parts /duplicacy -verbose -log backup -stats; find /backup/* -type f -name '*.tar' -mtime +${DAYS_TO_KEEP} -exec rm {} \;" >> /etc/crontabs/root
# run the cron daemon in the forground
/usr/sbin/crond -f -l 0