Giter Site home page Giter Site logo

hexo-git-backup's Introduction

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/.gitwill be removed

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

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

hexo-git-backup's People

Contributors

coneycode avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.