I have one server which has nothing but xls log files. Each file is 5-15Mb and it is dynamic in the sense that files get added at any point of time. Now I need a way to do the following process using Ruby.
- Copy a file by sending the filename from one server which has nothing but log files to another server.
- I need to pass the server password as an argument.
- Everything happens in the background, which is triggered from a Ruby script.
This is how it worked
I used the net-ssh & net-scp gem as suggested by @theTinMan and i was able to copy my files.
and to a copy a entire folder