Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.