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.