crontab
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "duplicacy",
|
||||
"version": "20201118.3",
|
||||
"version": "20201118.4",
|
||||
"slug": "duplicacy",
|
||||
"description": "Duplicacy backup",
|
||||
"arch": ["armhf", "armv7"],
|
||||
|
||||
@@ -28,6 +28,7 @@ echo ${FILTERS} | jq -r '.[]' >> /.duplicacy/filters
|
||||
|
||||
# backup all the data using cron and then remove the
|
||||
#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
|
||||
echo "${CRONTAB_RUN} /duplicacy -verbose -log backup -stats; find /backup/* -type f -name '*.tar' -mtime +${DAYS_TO_KEEP} -exec rm {} \;" | crontab -
|
||||
echo "${CRONTAB_RUN} /duplicacy -verbose -log backup -stats" | crontab -
|
||||
crontab -l
|
||||
# run the cron daemon in the forground
|
||||
/usr/sbin/crond -f -l 0 -L /dev/stdout
|
||||
Reference in New Issue
Block a user