Setting crontab di Linux

Pastikan ada crontab yang jalan

crontab -l

Hilangkan parameter dalam crontab

crontab -r

Setting parameter baru dengan format

[Minute] [hour] [Day_of_the_Month] [Month_of_the_Year] [Day_of_the_Week] [command]

Tambah atau edit parameter crontab

crontab -e

Backup crontab ke file

crontab -l > crontab-backup.txt

Restore dari file crontab

crontab crontab-backup.txt

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s