Google search bar

April 11, 2007

Using RSYNC (or any other system command) from RUBY

I found a blog entry concerning using rsync from ruby for doing backup. To use RSYNC from within Ruby, do something like this

> system "rsync -<option(s)> <from> <to>"

You can invoke any system command in this way.

No comments: