¶¨Ê±×Ô¶¯±¸·ÝÖ÷»úÎļþµ½±¾µØ ¨C Dropbox
Ç°Ãæ½éÉܹý£¬Ê¹ÓÃCpanel¿Õ¼äµÄʱÖÓÊØ»¤×÷Òµ£¨Cron Jobs£©¶¨Ê±±¸·ÝÍøÕ¾Îļþµ½ÒìµØ·þÎñÆ÷£¬½ñÌìÀ´¸ö¸ü¸ß¼¶µÄ£¬¶¨Ê±°ÑÍøÕ¾Îļþ±¸·Ýµ½±¾µØ£¬Ê¹ÓÃDropboxÍêÈ«¿ÉÒÔʵÏÖ¡£
ʹÓÃÃÀ¹úÖ÷»úµÄÅóÓÑ£¬Ò»°ã¶¼·Ç³£ÊìϤLinux£¬¶¨Ê±×Ô¶¯Ö´ÐÐÃüÁîÊÇʹÓÃLinuxµÄCron£¬CpanelÃæ°åÉÏ°ÑËü·ÒëΪ ʱÖÓÊØ»¤×÷Òµ¡£ÏÂÃæÊǶ¨Ê±×Ô¶¯±¸·ÝÖ÷»úÎļþµ½±¾µØµÄ¾ßÌå²½Ö裺
1¡¢×¢²áDropbox
Dropbox¹ÙÍø£ºhttps://www.dropbox.com
2¡¢µÇ¼Ö÷»ú£¬Ð½¨.shÎļþ
н¨backup.sh½Å±¾£¬¸´ÖÆÏÂÃæµÄÄÚÈݵ½backup.sh£¬µã»÷ÏÂÔؽű¾¡£
#!/bin/bash
DROPBOX_USER="Dropbox Email ÕʺÅ"
DROPBOX_PASS="Dropbox ÃÜÂë"
#DropboxÉÏ´«Ä¿Â¼ ĬÈÏÊÇdropboxÎļþ¼Ð
DROPBOX_DIR="/dropbox"
#Òª±¸·ÝµÄÎļþ·¾¶
BACKUP_SRC="/home/myuser/public_html"
#ÁÙʱĿ¼
BACKUP_DST="/tmp"
MYSQL_SERVER="127.0.0.1"
#mysql̞
MYSQL_USER="myuser"
#mysqlÓû§ÃÜÂë
MYSQL_PASS="Your MySQL password"
# based on "http://www.***.com/jiaocheng/backup-to-dropbox/"
NOW=$(date +“%Y.%m.%d")
DESTFILE="$BACKUP_DST/$NOW.tgz"
#
# Upload a file to Dropbox.
# $1 = Source file
# $2 = Destination file.
function dropboxUpload
{
#
# Code based on DropBox Uploader 0.6 from http://www.hostjike.com/jiaocheng/backup-to-dropbox/
LOGIN_URL="https://www.dropbox.com/login"
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ