Socket
Socket
Sign inDemoInstall

grunt-rsync-ac

Package Overview
Dependencies
100
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-rsync-ac

Run "rsync -aC --exclude-from=.rsyncignore".


Version published
Weekly downloads
2
Maintainers
1
Install size
3.63 kB
Created
Weekly downloads
 

Readme

Source

grunt-rsync-ac

Run "rsync -aC --exclude-from=.rsyncignore".

INSTALL

$ npm install --save-dev rsync-ac

Of course, you need to install rsync.

CONFIGURE

module.exports = function (grunt) {
  grunt.initConfig({
    rsync: {
      options: {
        local: './build/',
        remote: 'user@example.com:~/Sites/example.com/'
      },

      main: {
        options: {
          dry_run: false,
          sync; true,
          progress: true
        }
      }
    }
  });
};
grunt.loadNpmTasks('grunt-rsync-ac');

Task name is rsync, not rsync-ac or rsync_ac. There is no need to configure src-dest mappings. This Grunt plugin just run rsync.

Excluding files

You can specify exclude patterns in .rsyncignore file. .rsyncignore file must be placed in the same directory as a Gruntfile.js file. You can also specify exclude patterns with:

  • ~/.cvsignore file
  • A file set $CVSIGNORE
  • .cvsignore file in the same directory as a Gruntfile.js

local

Optional: default value is './'

A path to source directory. This plugin does not normalizes this value, so be careful to set. This can be pointed to remote directory.

remote

Required: default value is undefined

A path to destination directory. This can be pointed to local directory.

dry_run

Optional: default value is true

Enable --dry_run option or not. If this option sets to true, no changes made to a remote directories.

sync

Optional: default value is false

Enable --delete option or not. If this option sets to true, an extraneous files will be deleted from destination directories.

progress

Optional: default value is false

Enable --progress option or not. If this option sets to true, a progress will be displayed during file transfer.

LICENSE

MIT: http://hail2u.mit-license.org/2014

Keywords

FAQs

Last updated on 07 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc