V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sandylaw
V2EX  ›  Hexo

hexo 如何智能备份

  •  
  •   sandylaw · 2014-10-13 21:54:13 +08:00 · 4965 次点击
    这是一个创建于 3476 天前的主题,其中的信息可能已经有所发展或是发生改变。
    hexo-backup插件不能备份主题
    python脚本备份到邮箱需要手动操作,可以备份,比较麻烦,网盘类似。
    git 太复杂,hexo-backup插件就是备份到github,也是因为主题下有自己的.git,不能一块备份。
    哪位有好的办法?谢谢。
    16 条回复    2015-11-02 18:51:28 +08:00
    guoer
        1
    guoer  
       2014-10-13 21:59:28 +08:00
    新建个分支 push上去
    sandylaw
        2
    sandylaw  
    OP
       2014-10-13 22:13:51 +08:00
    @guoer 每一个主题都要新建个branch?太麻烦了。
    halfer53
        3
    halfer53  
       2014-10-13 22:16:29 +08:00
    网盘都有自动备份功能
    我直接把hexo建在Google Drive自动备份的文件夹里, 根本不用操心
    sandylaw
        4
    sandylaw  
    OP
       2014-10-13 22:40:01 +08:00
    @halfer53 linux用户
    google dropbox都在墙外
    云诺 已经收费
    坚果云要删除我105个软件包,没敢装。
    百度云第三方客户端bcloud不支持上传文件夹,也不支持同步了
    byron
        5
    byron  
       2014-10-14 09:23:42 +08:00
    酷盘
    guoer
        6
    guoer  
       2014-10-14 09:43:42 +08:00
    @sandylaw 把整个目录push上去 这样新环境pull下来直接用
    halfer53
        7
    halfer53  
       2014-10-14 12:03:26 +08:00
    sandylaw
        8
    sandylaw  
    OP
       2014-10-14 22:55:04 +08:00
    @halfer53 我在linux下,不能同步。
    发现了一款网盘,斯诺登推荐的,加密网盘,免费2g的空间。
    http://sandylaw.tk/2014/10/14/spideroak-backup/
    https://spideroak.com
    sandylaw
        9
    sandylaw  
    OP
       2014-10-14 22:55:54 +08:00
    @guoer 多层.git 不能直接push和pull
    guoer
        10
    guoer  
       2014-10-15 09:34:33 +08:00
    @sandylaw 忘记了这个问题 我是把主题下的.git文件夹删了
    sandylaw
        11
    sandylaw  
    OP
       2014-10-15 20:05:20 +08:00
    目前有几个方案:
    1. 讲hexo主题下的.git全部删掉,在ubuntu下可以使用hexo-backup备份到git
    2. 用python脚本备份到邮箱
    3. U盘随身带,并且用cmder配置好: http://sandylaw.tk/2014/10/15/cmder/
    coney
        12
    coney  
       2014-10-24 00:13:29 +08:00
    可以建立子模块,不过这样的话push下来以后更新的是github上的主题,你如果自己做修改了会出问题。hexo-backup在windows下面会出问题。我自己写了一个插件,这两天就在想这个问题,是建立子模块还是把.git删除掉。。欢迎讨论。
    https://github.com/coneycode/hexo-git-backup
    sandylaw
        13
    sandylaw  
    OP
       2014-10-24 06:33:41 +08:00
    @coney 两者取其轻,删除 主题的.git然后备份,主题一段时间内不升级。
    目前我是采取 cmder随身带+python邮箱备份。
    coney
        14
    coney  
       2014-10-28 09:58:34 +08:00
    @sandylaw 恩,我这周会把插件更新下,删除.git进行全博客备份。
    coney
        15
    coney  
       2014-10-28 23:35:11 +08:00
    @sandylaw 新版本已经搞定,欢迎使用。
    visionsmile
        16
    visionsmile  
       2015-11-02 18:51:28 +08:00
    我是把博客搭在 gh-pages 分支上,主程序放在 master 分支上。
    修改了之后 push 就好了,换了个平台 pull 下来修改后再 push 上去也很爽啊。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1018 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:58 · PVG 06:58 · LAX 15:58 · JFK 18:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.