I was trying to execute the below on my linux terminal and it was working fine by creating the backup of the source file at a given location + a log file was getting created with timestamp to the name of the log file.
rsync -av --delete /home/root/Desktop/Test/ /home/root/auto_backups/My_Programs/ /home/root/auto_backups/My_Programs/zz_crontab_logs/`date +\%F_%H-%M-%S-%N`-test1.log
But when I am running the same as a crontab as given below the I am not getting any output at all. Neither the backup of the source file nor the log file.
30 11,22 * * * rsync -av --delete /home/root/Desktop/Test/ /home/root/auto_backups/My_Programs/ /home/root/auto_backups/My_Programs/zz_crontab_logs/`date +\%F_%H-%M-%S-%N`-test1.log
and if i am just trying below command in cron with out the creating the log file it working fine.
30 11,22 * * * rsync -av --delete /home/root/Desktop/Test/ /home/root/auto_backups/My_Programs/
Can some one help on this please.
cronorrsync? If your question is aboutrsyncthen reproduce the problem without involvingcronand update your question, then it can be reopened. If your question is aboutcronthen it surely looks like a duplicate. – kasperd Nov 29 '17 at 14:49rsyncnot working properly when trying to withcron?, but rest of thecronjobs are working fine. Hence wanted help to fix it. I have also updated the question body with the same details. – AlphaBet Nov 30 '17 at 04:33