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-backup
config.py
: check and modify.backup-win.bat
orsh backup-mac.sh
: copysource files
to git repo- git ops: add, commit, and push files to Github or Bitbucket.
cd hexo-git-backup
config.py
: check and modify.update-win.bat
orsh update-mac.sh
: pullsource files
and copy it to the root directory of hexo blog.history-files
is used to store the history files that has been overwrited by the same file in git repo.