Backup Database Adempiere dengan Crontab

Fikri
0
Backup Database Adempiere dengan Crontab dengan bantuan backup-db.sh


* root@izzi:/etc# vi crontab
> 05 0 * * * root /etc/init.d/adempiere stop
> 07 0 * * * root /usr/sbin/backup-db.sh
> 30 0 * * * root /etc/init.d/adempiere start

Masukan backup-db.sh ke /usr/sbin
Buat Folder di /home/db-admin
> mkdir db-admin

--------------------------------------------------------------

*     *     *     *     *  command to be executed
-     -     -     -     -
|     |     |     |     |
|     |     |     |     +----- day of week (0 - 6) (Sunday=0)
|     |     |     +------- month (1 - 12)
|     |     +--------- day of month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)

Post a Comment

0Comments

Post a Comment (0)