An open API service indexing awesome lists of open source software.

https://github.com/hexojs/hexo-deployer-rsync

Rsync deployer plugin for Hexo.
https://github.com/hexojs/hexo-deployer-rsync

hexo hexo-plugin

Last synced: 4 months ago
JSON representation

Rsync deployer plugin for Hexo.

Awesome Lists containing this project

README

          

# hexo-deployer-rsync

[![Build Status](https://github.com/hexojs/hexo-deployer-rsync/workflows/Tester/badge.svg)](https://github.com/hexojs/hexo-deployer-rsync/actions?query=workflow%3ATester)
[![NPM version](https://badge.fury.io/js/hexo-deployer-rsync.svg)](https://www.npmjs.com/package/hexo-deployer-rsync)
[![Coverage Status](https://coveralls.io/repos/github/hexojs/hexo-deployer-rsync/badge.svg)](https://coveralls.io/github/hexojs/hexo-deployer-rsync)

Rsync deployer plugin for [Hexo].

## Installation

``` bash
$ npm install hexo-deployer-rsync --save
```

## Options

You can configure this plugin in `_config.yml`.

``` yaml
deploy:
type: rsync
host:
user:
root:
port: [port] # Default is 22
delete: [true|false] # Default is true
progress: [true|false] # Default is true
args:
rsh:
key:
verbose: [true|false] # Default is true
ignore_errors: [true|false] # Default is false
create_before_update: [true|false] # Default is false
```

- **host**: Address of remote host
- **user**: Username
- **root**: Root directory of remote host
- **port**: Port
- **delete**: Delete old files on remote host
- **progress**: Show rsync progress
- **args**: Rsync arguments (support space-separated strings)
- **rsh**: Specify the remote shell to use
- **key**: Custom SSH private key
- **verbose**: Display verbose messages
- **ignore_errors**: Ignore errors
- **create_before_update**: First create non-existing files, then update existing files

## License

MIT

[Hexo]: https://hexo.io/