NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ScottChapman
Nov 11, 2014Apprentice
ReadyNAS Pro 2 cron.daily not working?
So, I put a backup script into cron.daily. But doesn't appear to be running.
Is there something I need to do to make it work?
Is there something I need to do to make it work?
5 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredHave you compared the ownership and permissions of the script with that of other files in the directory?
Anything in the log for cron that might help? - ScottChapmanApprenticeYea I made sure ownership and permissions were the same.
What I look at /var/log/cron.log and look at the last reference to daily I see:
Nov 9 06:25:01 Server /USR/SBIN/CRON[25540]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
I see that every day at the same time. But no evidence the script ran. - dsm1212ApprenticeIf your script has a .sh extension remove the extension.
If you are logged in as root you can run-parts manually with the -v switch.
steve - ScottChapmanApprentice
Server:/# run-parts -v --report /etc/cron.daily
run-parts: executing /etc/cron.daily/check_disk_usage
run-parts: executing /etc/cron.daily/clean_recycle_bins
run-parts: executing /etc/cron.daily/logrotate
run-parts: executing /etc/cron.daily/logtruncate
/etc/cron.daily/logtruncate:
apache-ssl: Could not reliably determine the server's fully qualified domain name, using 10.0.0.222 for ServerName
Server:/# ls -l /etc/cron.daily/
total 20
-rwxr-xr-x 1 root root 85 2014-11-04 10:08 backup.rsync
-rwxr-xr-x 1 root root 2315 2008-06-27 16:03 check_disk_usage
-rwxr-xr-x 1 root root 2895 2010-03-08 14:57 clean_recycle_bins
-rwxr-xr-x 1 root root 89 2006-04-08 18:16 logrotate
-rwxr-xr-x 1 root root 3299 2011-12-30 21:41 logtruncate - ScottChapmanApprenticeOK, it looks like the file suffix was interfering. Renamed the file to backupNAS and it went fine.
Thanks!
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!