A boringly named upload tool written in Ruby.
Run the following command:
sudo ln -s `pwd`/rb_upload.rb /usr/local/bin/rbup
to add the executable to your PATH as rbup
.
In Cygwin, add the following to your .bashrc:
alias rbup='/path/to/rb_upload/rb_upload.rb'
To use rb_upload
, make a copy of the upload_settings.yml
file and place it
in the directory you wish to upload. Set local_directory
to "."
if you want
to upload the files directly from this directory.
Run rbup
in the directory to upload all files to the specified remote
directory.
For other options, run
rbup -h
You'll need a .netrc file with the credentials for every site you use. Make
sure its permissions are set with chmod
to 600
, or it may not work.
The major issue is that filesize comparison will only work with ascii files if
the line endings on the server and dev machine are setup the same - if you're
uploading to a Linux box, you need to make sure your local files use \n
endings or it'll judge the local and remote files to be different.