Need help with hexo-git-backup?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

coneycode
457 Stars 70 Forks MIT License 25 Commits 17 Opened issues

Description

you can use it to backup your blog into git.

Services available

!
?

Need anything else?

Contributors list

# 217,379
C++
dialogf...
C
Shell
19 commits
# 1,584
image-f...
assembl...
netfram...
residua...
1 commit

git-backup

git-backup.

Install

if your hexo version is 2.x.x, you should install as follow:

$ npm install [email protected] --save

if version is 3.x.x, you should install as follow:

$ npm install hexo-git-backup --save

Update

if you install with --save, you must remove firstly when you update it.

$ npm remove hexo-git-backup
$ npm install hexo-git-backup --save

Configure

You should configure this plugin in

_config.yml
.
backup:
    type: git
    repository:
       github: [email protected]:xxx/xxx.git,branchName
       gitcafe: [email protected]:xxx/xxx.git,branchName

Using

hexo backup 

or

hexo b

Options

if you want to back up with your theme,just add

theme: your theme name,your theme name
in
_config.yml
.
backup:
    type: git
    theme: coney,landscape,xxx
    repository:
       github: [email protected]:xxx/xxx.git,branchName
       gitcafe: [email protected]:xxx/xxx.git,branchName

Attention: if you do as above, the dir

themes/coney/.git
will be removed

if you want DIY commit message, just add 'message: update xxx'.

yaml
backup:
    type: git
    message: update xxx
    repository:
       github: [email protected]:xxx/xxx.git,branchName
       gitcafe: [email protected]:xxx/xxx.git,branchName

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.