copy files using rsync and ssh
rsync -a -e ssh source/ username@remotemachine.com:/path/to/destination/
DZone Snippets > jrobertson > copy
11397 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
James Robertson http://www.r0bertson.co.uk
rsync -a -e ssh source/ username@remotemachine.com:/path/to/destination/
require 'ftools' File.copy('notes.xml', 'notes2.xml')