New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

capistrano-syncfiles

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capistrano-syncfiles

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

capistrano-syncfiles

This gem provides up and down file syncing with rsync, tar or sftp. This could be usefull if you are in a shared hosting environment.

Supports folder excludes.

Installation

First make sure you install the capistrano-syncfiles by adding it to your Gemfile:

gem "capistrano-syncfiles"

Add to Capfile

require 'capistrano/syncfiles'

Configuration (deploy.rb)

Configure your files and folders like these:

set :syncfiles, {
  'wordpress/wp-content/uploads' => {                     # local path
      remote: 'wordpress/wp-content/uploads',             # remote path
      exclude: ['fvm', 'ithemes-security', 'wc-logs']     # excluded folders/files, based on local path, works also for remote
  }
}
set :syncfiles_rsync_options, '-avzuO'

set :syncfiles_roles, :all  # roles to run on, default: :all

set :syncfiles_temp_file    # applies only to tar strategy, default: "/tmp/transfere-#{local_path.hash}.tar.gz"

set :syncfiles_tar_verbose  # applies only to tar strategy, default: true

set :syncfiles_sftp_password # password for sftp connection

Usage

The following tasks will be added

cap syncfiles:rsync:down
cap syncfiles:rsync:up

cap syncfiles:tar:down
cap syncfiles:tar:up    

cap syncfiles:sftp:down
cap syncfiles:sftp:up    

You can invoke this tasks(Rake) as you do normally: https://github.com/ruby/rake

Capistrano tasks: http://capistranorb.com/documentation/getting-started/flow/

License

The MIT License (MIT)

Changelog

1.0.0
  • add syncfiles_rsync_options default options
0.3.0
  • use current_path instead of release_path
0.2.0
  • add sftp strategy
0.1.0
  • Initial release

FAQs

Package last updated on 15 Nov 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc