Project

remote_cp

0.0
No commit activity in last 3 years
No release in over 3 years
Tools to facilitate file transfert across machine
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0

Runtime

>= 0.6
>= 0
>= 0
 Project Readme

RemoteCp¶ ↑

Description¶ ↑

RemoteCp is a command line tool intended to facilitate copying files accross the internet. You need to install the gem on both source and destination computers. Since it uses Amason S3, you need to create a S3 Bucket and configure the source and destination computer with the bucket keys.

Installation¶ ↑

Install the gem

$ gem install remote_cp

Setup your remote cp by editing ~/.remote_cp config file:

:access_key_id: MY_ACCESS_KEY
:secret_access_key: MY_SECRET
:bucket_name: MY_BUCKET_NAME

Usage¶ ↑

To copy a file to the remote clipboard:

machineA> rt cp filename

The file can be pasted on another machine if remote_cp gem has been installed with the same bucket credentials.

machineB> rt p

You can also copy directories

machineA> rt cp dirname

To paste the copied directory in the current directory

machineB> /home/tata>$ rt p
machineB> /home/tata>$ ls -d */
/dirname

You can copy stdin to the remote clipboard:

machineA> ls -l | rt cp

You can also dump the remote clipboard to the stdout.

machineB> rt cat
total 8
drwxr-xr-x   5 martinos  staff   170 25 Mar 23:08 .
drwxr-xr-x  10 martinos  staff   340 25 Mar 23:08 log
drwxr-xr-x   2 martinos  staff    68 25 Mar 23:08 a_dir
-rw-r--r--   1 martinos  staff    15 25 Mar 23:07 a_file.txt
drwxr-xr-x  65 martinos  staff  2210 25 Mar 23:07 ..

License¶ ↑

Released under the MIT License. See the LICENSE file for further details.