懶的打

phpmyadmin限制連線
/etc/apache2/conf.d/phpmyadmin.conf

order deny,allow
deny from all
allow from 127.7.7.1 192.168.0.0/24
AllowOverride All



order deny,allow
deny from all
allow from 127.7.7.1 192.168.0.0/24
AllowOverride All


crontab -l
30 17 * * * sh /home/liaozi/backup2.sh

liaozi="/var/samba/sok/wayne/ooobackup"
liaozi2="/var/samba/"
#day=`date +%M-%H`
day=`date +%Y-%m-%d-%H`
/etc/init.d/mysql stop
cd /var/lib/mysql
tar -zcf "$liaozi"/ooo."$day".tar.gz ooo 2>/dev/null
tar -zcf "$liaozi"/wikidb."$day".tar.gz wikidb 2>/dev/null
tar -zcf "$liaozi"/mysql."$day".tar.gz mysql 2>/dev/null
/etc/init.d/mysql start
smbmount //192.168.0.139/MSSQL /var/samba/MSSQL -o guest,iocharset=utf8,codepage=cp950
cd /var/samba/
tar -zcf "$liaozi2"/MSSQL."$day".tar.gz MSSQL 2>/dev/null
umount /var/samba/MSSQL
cp -ru /var/www/products/ /var/samba/

留言

熱門文章