LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Transfer large number of files host to host (https://www.linuxquestions.org/questions/linux-newbie-8/transfer-large-number-of-files-host-to-host-839359/)

blainemiller 10-20-2010 02:24 PM

Transfer large number of files host to host
 
Hello...

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.

Blaine

Tinkster 10-20-2010 02:39 PM

Hi,

The best choice (if available) is rsync


Cheers,
Tink

eyt 10-20-2010 02:46 PM

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

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

jefro 10-20-2010 03: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 04:50 PM

eyt,

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

Thanks.... Blaine

blainemiller 10-20-2010 04:52 PM

jefro,

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...

Blaine


All times are GMT -5. The time now is 11:20 PM.