#!/usr/bin/ruby # `ss` is the alias for my StrongSpace login. # `home/novemberborn/` is the directory in which I want to store stuff. REMOTE = 'ss:/home/novemberborn/' def rsync local_path, remote_dir puts `rsync -azv #{local_path} #{REMOTE}#{remote_dir}/` puts "\n---\n" end # rsync 'local_directory_path', 'remote_directory_name' rsync '~/Documents/', 'Documents'
Never been to CodeSnippets before?
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 (or not, you can keep them private!)
Rsyncing to StrongSpace (See related posts)
Comments on this post
You need to create an account or log in to post comments to this site.
Related Posts
» Complete backup of all domai... in rsync bash textdrive strongspace backups
» rsync via ssh in ssh rsync
» Mount Strongspace to a folde... in backup strongspace ubuntu fuse mount folder
» rsync for dummies in rsync
» Upload your Flickr photos to... in ruby backup strongspace flickr
» Daily rotated backups to Str... in backup strongspace
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails