Posts Tagged ‘cron’

Oct 16

Sometime we want to backup our databases for a reasons, like prevent the database deleted, move database to another server, etc. its very bored if we do it every day manually and sometime we forget to backup the database. so what we want is backup the database with something automatically with the time we have set, but how ? there is a lot of trick to do this, one of the is use shell script and cron.

ok, lets do it

1. Create Shell Script

$ vim backup.sh

in vim editor put this script