------------------------------------
/etc/init.d/firewall stop
/etc/init.d/apache2 stop
/etc/init.d/mysql stop
cd /home/webadmin/html/sfs3
tar zcvf /home/webadmin/html.tgz data
cd /var/lib/mysql/
tar zcvf /home/webadmin/mysql.tgz sfs3
---------------------
cd /usr/bin/
ncftp -u 使用者 -p 密碼 163.23.115.
put /home/webadmin/html.tgz
put /home/webadmin/mysql.tgz
cd /home/webadmin/
rm html.tgz
rm mysql.tgz
/etc/init.d/apache2 start
/etc/init.d/mysql start
/etc/init.d/firewall start
--------------------------------------
沒有留言:
張貼留言