sandylaw
11.13D
V2EX  ›  Hexo

hexo 如何智能备份

  •  
  •   sandylaw · Oct 13, 2014 · 6138 views
    This topic created in 4415 days ago, the information mentioned may be changed or developed.
    hexo-backup插件不能备份主题
    python脚本备份到邮箱需要手动操作,可以备份,比较麻烦,网盘类似。
    git 太复杂,hexo-backup插件就是备份到github,也是因为主题下有自己的.git,不能一块备份。
    哪位有好的办法?谢谢。
    16 replies  •  2015-11-02 18:51:28 +08:00
    guoer
    guoer
    Oct 13, 2014
    1
    新建个分支 push上去
    sandylaw
    sandylaw
    OP
    Oct 13, 2014
    2
    @guoer 每一个主题都要新建个branch?太麻烦了。
    halfer53
    halfer53
    Oct 13, 2014
    3
    网盘都有自动备份功能
    我直接把hexo建在Google Drive自动备份的文件夹里, 根本不用操心
    sandylaw
    sandylaw
    OP
    Oct 13, 2014
    4
    @halfer53 linux用户
    google dropbox都在墙外
    云诺 已经收费
    坚果云要删除我105个软件包,没敢装。
    百度云第三方客户端bcloud不支持上传文件夹,也不支持同步了
    byron
    byron
    Oct 14, 2014
    5
    酷盘
    guoer
    guoer
    Oct 14, 2014
    6
    @sandylaw 把整个目录push上去 这样新环境pull下来直接用
    halfer53
    halfer53
    Oct 14, 2014
    7
    sandylaw
    sandylaw
    OP
    Oct 14, 2014
    8
    @halfer53 我在linux下,不能同步。
    发现了一款网盘,斯诺登推荐的,加密网盘,免费2g的空间。
    http://sandylaw.tk/2014/10/14/spideroak-backup/
    https://spideroak.com
    sandylaw
    sandylaw
    OP
    Oct 14, 2014
    9
    @guoer 多层.git 不能直接push和pull
    guoer
    guoer
    Oct 15, 2014
    10
    @sandylaw 忘记了这个问题 我是把主题下的.git文件夹删了
    sandylaw
    sandylaw
    OP
    Oct 15, 2014
    11
    目前有几个方案:
    1. 讲hexo主题下的.git全部删掉,在ubuntu下可以使用hexo-backup备份到git
    2. 用python脚本备份到邮箱
    3. U盘随身带,并且用cmder配置好: http://sandylaw.tk/2014/10/15/cmder/
    coney
    coney
    Oct 24, 2014
    12
    可以建立子模块,不过这样的话push下来以后更新的是github上的主题,你如果自己做修改了会出问题。hexo-backup在windows下面会出问题。我自己写了一个插件,这两天就在想这个问题,是建立子模块还是把.git删除掉。。欢迎讨论。
    https://github.com/coneycode/hexo-git-backup
    sandylaw
    sandylaw
    OP
    Oct 24, 2014
    13
    @coney 两者取其轻,删除 主题的.git然后备份,主题一段时间内不升级。
    目前我是采取 cmder随身带+python邮箱备份。
    coney
    coney
    Oct 28, 2014
    14
    @sandylaw 恩,我这周会把插件更新下,删除.git进行全博客备份。
    coney
    coney
    Oct 28, 2014
    15
    @sandylaw 新版本已经搞定,欢迎使用。
    visionsmile
    visionsmile
    Nov 2, 2015
    16
    我是把博客搭在 gh-pages 分支上,主程序放在 master 分支上。
    修改了之后 push 就好了,换了个平台 pull 下来修改后再 push 上去也很爽啊。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1037 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:50 · PVG 02:50 · LAX 10:50 · JFK 13:50
    ♥ Do have faith in what you're doing.