summaryrefslogtreecommitdiff
path: root/bin/backup-freeside
blob: a39b04692a178b4cd0b2fffc4aa3bc40bb1a5b71 (plain)
1
2
3
4
5
6
#!/bin/sh
/etc/init.d/apache stop
/etc/init.d/mysql stop
tar czvf var-lib-mysql-`date +%y%m%d%H%M%S`.tar.gz /var/lib/mysql
/etc/init.d/mysql start
/etc/init.d/apache start