Go to comments ↓ Home » Blog

博客数据备份方案

Blog数据的备份是非常重要的,无论是本地的资料还是服务器上的数据,这无需在再强调。

对于Blogger来说,基本都很重视这个。我们没有必要去相信那些通用的博客备份软件,只需要简单的备份数据库和一些目录即可。

每个人都有不同的考虑和不同的方法。可以拿出来探讨下。

数据库备份

对于博客来说,数据库无疑最重要的,日志和评论丢了是很难找回来的。

相信大家都安装了wp数据库备份插件吧。A.shun推荐使用的是WordPress Database Backup插件来进行数据库备份,操作简单,功能强大。
支持备份到服务器、本地、邮箱,支持自动备份和自定义备份频率。

wordpress数据库备份插件

建议设置定时备份到email。我们可以在Gmail建立一个过滤器和标签来接收此类邮件,自动存档。

Gmail过滤器标签

总之,保障安全又省去了操作phpmyadmin的体力活。当然,搬家或者有重大调整的时候要检查插件是否正常工作。

博客程序文件夹和图片的备份

这部分相对来说没那么重要。毕竟:程序、插件可以重新安装和设置、主题可以重新修改,图片也可以补充。
但是为了避免不必要的麻烦,我还是选择不定期对进行备份。

以前我是这么做的是,进入控制面板的文件管理器,打包整个文件夹(有SSH的话也很方便),然后整个文件夹下载到本地。
但要注意到是把备份放在服务器根目录或常用可访问目录是危险的事情,不信你看看站点的请求日志。所以下载完要尽快删除。

由于我们没有自己的vps,不能通过脚本什么来自动备份,能备份文件夹的插件效果又不理想。
so,现在我比较习惯使用同步软件类进行备份。

虽然还称不上太好的方案。但只需稍微折腾,然后设定一个同步周期即可。而且可以减少传输量,这就意味着节省时间和流量

通常,备份wp-content和图片目录即可。之前更换图床,把图片搬到自己的空间,就是除了便于管理和稳定之外,也是为这方面做准备。

A.shun选择的是Allway Sync,以前介绍同步软件时说过。支持FTP同步、多向多任务、支持过滤器以及多种规则设置。(免费版本每月可进行40000个文件的同步)
其实GoodSync也不错,还支持sftp协议,但是试用期过后支持的数量较少。

博客数据同步备份工具

步骤:

  1. 先下载了需要备份的文件夹压缩包,解压到本地目录。
  2. 在同步工具中新建任务,设置好本地的文件夹和配置ftp,设好同步方向。
  3. 修改过滤器,将不必要的文件排除出去,比如说一些缓存文件或者缩略图之类的。
  4. 修改同步规则,遇到什么情况是忽略还是询问。
  5. 新建同步计划,可设定间隔或者新建“任务计划”等。

当然,肯定有比这更好地选择,只是反正我干别的也需要同步软件,懒得去多开一个程序,就暂且用着。

往后继续发掘更好地方法。

我这几天就要搬家了,如果现实中也有同步工具该多好哇。o(╯□╰)o

» 转载请以超链接形式注明来源:A.shun Blog » 《博客数据备份方案》
» 本文链接地址:http://shun.im/21346

» 本文采用 BY-NC-SA 协议进行授权。
» 建议通过 Rss( Feedly | Feedburner | Feedsky )方式及时获取更新。

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/ashun/shun.im/wp-includes/class-wp-comment-query.php on line 399

  1. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.2 Firefox 3.6.2 Windows XP Windows XP
    #1
    @
  2. ikeeptrying

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 4.1.249.1045 Google Chrome 4.1.249.1045 Windows 7 Windows 7
    #2
    @

  3. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.5.7 Firefox 3.5.7 Windows Server 2003 Windows Server 2003
    #3
    @

  4. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Tencent Traveler 4.0 Tencent Traveler 4.0 Windows XP Windows XP
    #4
    @

  5. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.2 Firefox 3.6.2 Windows XP Windows XP
    #5
    @

  6. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.2 Firefox 3.6.2 Windows 7 Windows 7
    #6
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.52 Opera 10.52 Windows XP Windows XP

  7. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.2 Firefox 3.6.2 Windows 7 Windows 7
    #7
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.52 Opera 10.52 Windows XP Windows XP

  8. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Maxthon 2.0 Maxthon 2.0 Windows XP Windows XP
    #8
    @

  9. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 4.1.249.1045 Google Chrome 4.1.249.1045 Windows XP Windows XP
    #9
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.52 Opera 10.52 Windows XP Windows XP

  10. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 5.0.366.2 Google Chrome 5.0.366.2 Windows XP Windows XP
    #10
    @

  11. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Google Chrome 3.0.195.0 Google Chrome 3.0.195.0 Windows 7 Windows 7
    #11
    @

  12. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    360Safe Explorer 360Safe Explorer Windows XP Windows XP
    #12
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.52 Opera 10.52 Windows XP Windows XP

  13. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    #13
    @

  14. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows 7 Windows 7
    #14
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.52 Opera 10.52 Windows XP Windows XP

  15. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    #15
    @

  16. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    TheWorld Browser TheWorld Browser Windows 7 Windows 7
    #16
    @

  17. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    #17
    @

    • Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
      Opera 10.52 Opera 10.52 Windows XP Windows XP
  18. pazz7ven

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Internet Explorer 8.0 Internet Explorer 8.0 Windows XP Windows XP
    #18
    @

  19. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows XP Windows XP
    #19
    @

  20. Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 346

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 348

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /www/wwwroot/ashun/shun.im/wp-content/themes/zova/functions.php on line 350
    Firefox 3.6.3 Firefox 3.6.3 Windows 7 Windows 7
    #20
    @
Leave a Reply

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: