Permalink
Browse files

Fix crontab syntax (RT#110044)

  • Loading branch information...
1 parent 0ea6498 commit 36fa3c7a26388e3e071b1f271eab5ed5af0440ed @abh abh committed Feb 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/misc/how-to-mirror.html
@@ -122,7 +122,7 @@
</pre>
<p>
Using 'crontab' you can make rsync run once a day, for example<br>
- <tt>4 40 * * * sleep $(expr $RANDOM \% 7200); /usr/bin/rsync -av --delete
+ <tt>40 4 * * * sleep $(expr $RANDOM \% 7200); /usr/bin/rsync -av --delete
cpan-rsync.perl.org::CPAN /project/CPAN/</tt><br>
The "sleep $(...);" statement makes the command delay up to 2 hours before
running rsync; the advantage of this is that you (and everybody else) won't
@@ -131,7 +131,7 @@
<p>
If you have a problem with permissions (files are created with mode
<tt>-rw-------</tt>), set <tt>umask</tt> in your cronjob :<br>
- <tt>4 40 * * * umask 022 ; sleep ... ; /usr/bin/rsync ...</tt><br>
+ <tt>40 4 * * * umask 022 ; sleep ... ; /usr/bin/rsync ...</tt><br>
The <tt>umask 022</tt> allows rsync to set proper permissions for
files and directories.
</p>

0 comments on commit 36fa3c7

Please sign in to comment.