var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
If I want this rsync script to run at 2AM daily, is this the correct way of adding the following line to /etc/crontab
0 2 * * * root sh /usr/local/bin/rsync.sh
You may want to add this to the end of the line to throw all the scripts output away (otherwise it is emailed to you):
> /dev/null 2>&1
to grab it's output to a file.
What do you mean by that? I don't get emails from that script. The only email I get daily is the Logwatch.
With no ending the output from your sync script will get emailed to you each time it runs. If you want that then fine.
If you don't want that then you can either log the output or throw it away depending what one of my options you choose.
"sh /usr/local/bin/rsync.sh" is repetitive.
You're forking an extra shell you don't need to...
(Assuming rsync.sh contains a valid interpreter declaration, i.e.:
on the first line and has execute permission for root.)
0 2 * * * root /usr/local/bin/rsync.sh