Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 linux machines, one (1st) containing about 8 GB of small files (images, flv etc)

I need to upload/push those files to the other machine (2nd).

I would use rsync to pull them down to the 2nd machine however the 1st machine (containing the files) has file wall rules that I cannot circumvent therefore I cannot ssh into it from the 2nd machine.

share|improve this question
1  
So why can't you use rsync to do the pushing? – jjlin Jun 26 '12 at 3:35
up vote 2 down vote accepted

rsync can operate in either direction; either pulling files or pushing them. Since you can't pull from machine 1, why not push from machine 1 to machine 2? The syntax for rsync is just like scp.

rsync options source destination

So, in your case, you might...

rsync -azv ~/my_folder chris@machine2.local:~

This will copy ~/my_folder/ to the same location on machine 2.

You could use scp with the -r flag here as well, but rsync is more suited for the task.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .