remove cron
This commit is contained in:
@@ -26,10 +26,8 @@ sed --in-place 's~<BACKUP_SERVER_PATH>~'${BACKUP_SERVER_PATH}'~' /.duplicacy/pre
|
|||||||
# create the filters file
|
# create the filters file
|
||||||
echo ${FILTERS} | jq -r '.[]' >> /.duplicacy/filters
|
echo ${FILTERS} | jq -r '.[]' >> /.duplicacy/filters
|
||||||
|
|
||||||
# backup all the data using cron and then remove the
|
# run the backup
|
||||||
echo "${CRONTAB_RUN} /duplicacy -verbose -log backup -stats">> /etc/crontabs/root
|
/duplicacy -verbose -log backup -stats
|
||||||
echo "${CRONTAB_RUN} find /backup/* -type f -name '*.tar' -mtime +${DAYS_TO_KEEP} -exec rm {} \;" >> /etc/crontabs/root
|
|
||||||
crontab /etc/crontabs/root
|
# run the clean up
|
||||||
crontab -l
|
find /backup/* -type f -name '*.tar' -mtime +${DAYS_TO_KEEP} -exec rm {} \;
|
||||||
# run the cron daemon in the forground
|
|
||||||
/usr/sbin/crond -f -l 1 -L /dev/stdout
|
|
||||||
Reference in New Issue
Block a user