DiBaReMy/README.md

43 lines
705 B
Markdown
Raw Normal View History

2014-04-21 14:44:31 +02:00
mysql_utils for Debian
=======================
2013-06-12 00:10:39 +02:00
Backup and Restore data from MySql tables
2013-11-23 18:17:53 +01:00
2014-04-21 14:44:31 +02:00
Install
======
cd ~
git clone https://github.com/Mirocow/mysql_utils.git
cd mysql_utils
bash ./backup.sh
Backup
======
cd ~
cd mysql_utils
bash backup.sh
Restore
=======
cd /var/backups/mysql
bash ~/mysql_utils/restore.sh
2013-11-23 18:17:53 +01:00
Automation backup with Cron
===========================
2014-04-21 14:16:04 +02:00
nano /etc/default/db_backup
START=yes
2013-11-23 18:17:53 +01:00
nano /etc/cron.d/db_backup
2014-04-21 14:50:26 +02:00
@daily root . /etc/default/db_backup && if [ "$START" = "yes" ] && [ -x /root/mysql_utils/backup.sh ]; \
then /bin/bash /root/mysql_utils/backup.sh; fi
2014-04-21 14:48:26 +02:00
Check work
==========
tail -f /var/log/syslog