Ò»¶ÔÒ»Ãâ·Ñ×Éѯ£º 13913005726 025-66045668

ÔÚgodaddyÿע²áÒ»¸öÓòÃûºó¶¼¿ÉÒÔÃâ·ÑÉêÇëÒ»¸ö10G´óС¡¢300GÁ÷Á¿ºÓ³ØÍøÕ¾½¨É蹫˾ µÄWindows/Linux¿Õ¼ä£¬È»¶ø¸ÃÃâ·Ñ¿Õ¼äÒòΪ×Ô´øgodaddyµÄ¹ã¸æÔÙ¼ÓÉÏËùÔڵķþÎñÆ÷ÐÔÄÜʵÔÚÓÐÏÞ£¬Ê¹Ö®ÍêÈ«ÂÙΪ¼¦Àߣ¬±»¶àÊýÈËÆúÖ®Ò»ÅÔ¡£

×òÌìÔÚÕÒµ½Ò»¸ö×Ô¶¯±¸·ÝMySQLµÄ½Å±¾ºó£¬Ïëµ½¿ÉÒÔÀûÓÃgodaddyµÄÃâ·Ñ¿Õ¼ä¶ÔVPSµÄÊý¾Ý¿âÒÔ¼°ÍøÒ³½øÐÐÒìµØ±¸·Ý¡£

Ê×Ïȵǽµ½godaddyµÄMy AccountÒ³Ã濪ͨÃâ·Ñ¿Õ¼ä£¬²½ÖèºÜ¼òµ¥£¬¿ÉÒÔµãÕâ¶ùΧ¹Û¡£

ÔÚ×¼±¸ºÃgodaddyµÄÃâ·Ñ¿Õ¼äÒԺ󣬾ͿÉÒÔÔÙVPSÉ϶¯ÊÖÊõÁË£¬Ê×ÏÈÔÚVPSÉÏ°²×°lftp£º

yum -y install lftp

È»ºó´´½¨×Ô¶¯±¸·Ý½Å±¾backup.sh£º

#!/bin/bash

### MySQL Server Login Info ###

MUSER="username"

MPASS="password"

MHOST="localhost"

MYSQL="$(which mysql)"

MYSQLDUMP="$(which mysqldump)"

BAK="/home/yourname/backup/mysql"

GZIP="$(which gzip)"

### FTP SERVER Login info ###

FTPU="ftp username"

FTPP="ftp password"

FTPS="ftp server"

NOW=$(date +"%d-%m-%Y")

[ ! -d $BAK ] && mkdir -p $BAK || /bin/rm -f $BAK/*

DBS="$($MYSQL -u $MUSER -h $MHOST -p$MPASS ÄÚŵÍøÕ¾Éè¼ÆÓ뿪·¢ -Bse 'show databases')"

for db in $DBS

do

FILE=$BAK/$db.$NOW-$(date +"%T").gz

$MYSQLDUMP -u $MUSER -h $MHOST ³ÎÂõÍøÕ¾½¨É蹫˾-p$MPASS $db | $GZIP -9 $FILE

done

lftp -u $FTPU,$FTPP -e "mkdir /db-backup/$NOW;cd /db-backup/$NOW; mput /home/yourname/backup/mysql/*; quit" $FTPS

find /home/yourname/backup/mysql -ctime +4 -exec rm {} \;

Ð޸Ľű¾È¨ÏÞ£¬Ê¹ÆäÄÜÔËÐÐ:

chmod +x backup.sh

½«¸Ã½Å±¾ÉèΪ¶¨Ê±ÈÎÎñ,½«¸Ã½Å±¾ÉèΪ¶¨Ê±ÈÎÎñ:

crontab -e

Ìí¼ÓÒ»ÐÐÄÚÈÝ£º

00 00 Æ·ÅÆÍøÕ¾½¨Éè * * * /bin/bash /root/backup.sh

ÕâÑùÒ»À´£¬VPS»áÔÚÿÌìÁ賿0µãÖ´Ðб¸·Ý½Å±¾£¬È»ºó½«±¸·ÝÊý¾ÝÉÏ´«µ½godaddyµÄ¿Õ¼äÉÏ£¬ÕâÑùÀ´VPSµÄÊý¾Ý±¸·Ý¾ÍÓÐÁ˱£Ö¤£¬¶øÇÒÒ²³ä·ÖÀûÓÃÁËgodaddyµÄÃâ·Ñ¿Õ¼ä¡£

Ïà¹ØÔĶÁ£º

ÔÚVPSÖа²×°DropboxʵÏÖÍøÕ¾µÄʵʱ±¸·Ý

¿ªÍ¨GodaddyÃâ·Ñ¿Õ¼ä×öʵ»ÝµÄͼƬÍâÁ´¿Õ¼ä

ÎÄÕÂÀ´Ô´£ºhttp://www.saiq.org/blog/2010-03/17


 


 ÄϾ©ÄÁÀÇÎÄ»¯´«Ã½ÓÐÏÞ¹«Ë¾¼ò½é£º


      ÄÁÀÇ´«Ã½£¬ÄÁÕßÖ®ÐÄ£¬ÀÇÕßÖ®ÐÔ£¬ÒÔÄÁ֮ǫ±°¿íÈÝÖ®ÐÄ´ýÈË£¬ÒÔÀÇ͎֮áÎÞη֮ÐÔ×öÊ£¡


¡¡¡¡¹«Ë¾×¢²á×ʽð100Íò£¬Ö÷ÓªÖÚ³ïÈ«°¸·þÎñ¡¢ÍøÕ¾ÓªÏúÈ«°¸·þÎñ¡¢ÍøÕ¾½¨É衢΢ÐÅС³ÌÐò¿ª·¢¡¢µçÉÌÍøµêÉè¼Æ¡¢H5Ò³ÃæÉè¼Æ¡¢ÌÚѶÉç½»¹ã¸æͶ·ÅÒÔ¼°µçÉÌÓªÏúÍƹãÈ«°¸µÈÏà¹ØÒµÎñ£¬ÖÂÁ¦ÓÚΪ¿Í»§Ìṩ¸üÓмÛÖµµÄ·þÎñ,´´ÔìÈÃÓû§ÂúÒâµÄЧ¹û£¡


¡¡¡¡Îª°Ù¶È¹Ù·½¼°Æä´ó¿Í»§¡¢ËÕÄþÒ×¹º¡¢½ðɽWPSÐãÌá¢ÃÀµÄ¡¢´´Î¬¼Òµç¡¢Ð¶«·½ÔÚÏß¡¢ÒÁÀ³¿Ë˹¡¢±¦ÀöÀ³µÈ¹úÄÚ¹úÍâÖªÃûÆ·ÅÆ·þÎñ¹ý£¬·þÎñ¾­Ñé·á¸»£¡Í¬Ê±£¬¹«Ë¾Ò²ÊÇÄϾ©µç×ÓÉÌÎñЭ»á»áÔ±µ¥Î»¡¢Öí°Ë½äÍø¹Ù·½ÈÏ֤ǩԼ·þÎñÉÌ¡¢½­Ëհ˽ä·þÎñÍøÁªÃË¡¢ÄϾ©ÆÖ¿ÚÎÄ»¯²úÒµÁªºÏ»á»áÔ±µ¥Î»£¬¿ÉÒÔΪÄúÌṩ¸üºÃµÄ·þÎñ£¡


¡¡¡¡Ö÷ÓªÏîÄ¿£ºÖÚ³ïÈ«°¸·þÎñ¡¢ÍøÕ¾ÓªÏúÈ«°¸·þÎñ¡¢ÍøÕ¾½¨É衢΢ÐÅС³ÌÐò¿ª·¢¡¢µçÉÌÍøµêÉè¼Æ¡¢H5Ò³ÃæÉè¼Æ¡¢ÌÚѶÉç½»¹ã¸æͶ·Å¡¢¾º¼ÛÍйܡ¢ÍøÕ¾ÓÅ»¯¡¢µçÉÌ´úÔËÓªµÈ


¡¡¡¡ºÏ×÷¿Í»§£º°Ù¶È¡¢ËÕÄþÒ×¹º¡¢¶öÁËô¡¢ÃÀµÄ¡¢´´Î¬¼Òµç¡¢Ð¶«·½ÔÚÏß¡¢±¦ÀöÀ³¡¢½ðɽWPSÐãÌá¢ÒÁÀ³¿Ë˹


¡¡¡¡×ÊÖÊÈÙÓþ£º°Ù¶ÈÉÌÒµ·þÎñÊг¡2017Äê¶È×î¼ÑͼƬ·þÎñÉÌ¡¢ÄϾ©µç×ÓÉÌÎñЭ»á»áÔ±µ¥Î»¡¢Öí°Ë½äÍø¹Ù·½ÈÏ֤ǩԼ·þÎñÉÌ¡¢½­Ëհ˽ä·þÎñÍøÁªÃË¡¢ÄϾ©ÆÖ¿ÚÎÄ»¯²úÒµÁªºÏ»á»áÔ±µ¥Î»¡¢°Ë½äͨTOP·þÎñÉÌ¡¢"Ò×Åļ´ºÏ±­"H5´´Òâ´óÈü"ÈýµÈ½±"¡£



ÖÂÁ¦ÓÚΪ¿Í»§´´Ôì¸ü¶à¼ÛÖµ
13913005726 025-66045668
ÐèÇóÌá½»
µç»°×Éѯ
ÔÚÏß×Éѯ