-   Linux - Newbie (
-   -   Transfer large number of files host to host (

blainemiller 10-20-2010 03:24 PM

Transfer large number of files host to host

I have 2 hosts, one that is essentially blank and the other has a large number of files and subdirectories. I need to be able to transfer the files and subdirectories from the used host to the new one.

I don't have enough space on the old host to hold all the files and subdirectories. I've read that there may be a way to transfer the files via a zipped tar file but I haven't found any examples. I'm lost.

I appreciate your time and assistance.


Tinkster 10-20-2010 03:39 PM


The best choice (if available) is rsync


eyt 10-20-2010 03:46 PM

if you want to transfer directory eg. /home/userA from host1 to host2 /home/temp

at host1:
# cd /home
# tar cf - userA|ssh "cd /home/temp; tar xf -"

jefro 10-20-2010 04:43 PM

I'd ftp them.

A compressed tar file or cat to a gzip or 7zip or such would mean that on the other end you'd have to un-compress them.

You could also use nc (netcat) on both ends and compress between.

blainemiller 10-20-2010 05:50 PM


Will this line also transfer all the files in all the subdirectories as well?

Thanks.... Blaine

blainemiller 10-20-2010 05:52 PM


Thanks for your idea... I don't think ftp is recursive is it? I have multiple files in multiple subdirectories... Thanks and I'll keep ftp in mind...


All times are GMT -5. The time now is 08:22 AM.