zmielna / backup_scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scripts to be run from cron. For MySQL Stick a copy to /root/bin/dumpmysql.sh making sure you provided mysql root password. Then crontab -e and add this line

01 4 * * * /root/bin/dumpmysql.sh 2>&1 |logger

Adjust execution time to your needs, to fire up script before file backup session takes place.

For PostgreSQL stick a copy to /root/bin/postgresql_dump.sh making usre you specify databases you want to dump

01 4 * * * /root/bin/postgresql_dump.sh 2>&1 |logger

About

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%