Linux KNOWLEDGE by Spreech 

 home |
Too Cool for Internet Explorer

Crontab Beispiel Home PC

Bloged in Befehle by manuel.schwab Sonntag April 29, 2007

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don’t have to run the `crontab‘
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

MAILTO=root

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts –report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.monthly )
#

# Cron Job für das Backupscript der DPKG – Packete um 19:30 Uhr jeden Tag
30 19 * * * root /root/scripts/backup1.sh

# Cron Job für das herunterladen der MYSQL Backupppe – am 1, 15 und 28 jeden Monats um 19:40 Uhr

40 19 1,15,28 * * root /root/scripts/backup3.sh

# Cron Job für das Backupscript des täglichen Backups um 21:00 Uhr jeden Tag
45 19 * * * root /root/scripts/backup2.sh

# Cron Job für das Backupscript des Serverbackups um 20:00 Uhr jeden Sonntag
00 20 * * 7 root /root/scripts/backup5.sh

Keine Kommentare »

No comments yet.

Leave a comment


RSS feed for comments on this post. TrackBack URI

Powered by Wordpress, theme by Dimension 2k