Linux in General > Linux Tutorials & How To's

Problem using rsync with cron

(1/1)

ana45:
Hi,

I've created a cron job for a script with a rsync command in it. The script is named pull.sh and contains the following line :


--- Quote ---rsync -avz 7-h2.my00001.cserver.mygrid.asia:/backups/daily/myob /backups/myob >> output.log
--- End quote ---

What it is supposed to do is pull backup files from the production server of my company to my local server. It should also generate the log file (output.log) to show the result.

The crontab settings is :


--- Quote ---45 18 * * *   sh /sbin/pull.sh > /tmp/pulling.log
--- End quote ---

So by right with the settings above, I should get the backup files in my local servers /backups/myob directory. At the same time, I should also get the results in the output.log.

But the problem is I don't get the results at all.

I have SELinux running in permissive mode. Could this be the reason?

Navigation

[0] Message Index

Go to full version