Back-up the source files of my blog.
coneycode/hexo-git-backup is more popular, you also can try it.
- git
- Python 2.7: Tested.
- Python 3.x: Not tested.
Reference Hexo
- Install Hexo
- Create hexo blog
- Install theme
- Go to the root directory of hexo blog.
git clone https://github.com/tanchao90/hexo-git-backup.git
git remote set-url origin https://github.com/username/repo.git
cd hexo-git-backupconfig.py: check and modify.backup-win.batorsh backup-mac.sh: copysource filesto git repo- git ops: add, commit, and push files to Github or Bitbucket.
cd hexo-git-backupconfig.py: check and modify.update-win.batorsh update-mac.sh: pullsource filesand copy it to the root directory of hexo blog.history-filesis used to store the history files that has been overwrited by the same file in git repo.