0.1.3 • Published 7 years ago
hexo-git-backup v0.1.3
git-backup
git-backup.
Install
$ npm install hexo-git-backup --saveUpdate
if you install with --save, you must remove firstly when you update it.
$ npm remove hexo-git-backup
$ npm install hexo-git-backup --saveConfigure
You should configure this plugin in _config.yml.
backup:
type: git
repository:
github: git@github.com:xxx/xxx.git,branchName
gitcafe: git@github.com:xxx/xxx.git,branchNameUsing
hexo backup or
hexo bOptions
if you want to back up with your theme,just add theme: your theme name in _config.yml.
backup:
type: git
theme: coney
repository:
github: git@github.com:xxx/xxx.git,branchName
gitcafe: git@github.com:xxx/xxx.git,branchNameAttention: if you do as above, the dir themes/coney/.gitwill be removed
Now you can backup all the blog!
Problems
You may get some troubles by your computer' permission。
###Error: EISDIR, open it is caused by permission. just do 'sudo hexo b'
sudo hexo b