Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Search this Thread
Old 10-20-2010, 02:24 PM   #1
Registered: Dec 2003
Posts: 78

Rep: Reputation: 1
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.

Old 10-20-2010, 02:39 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880

The best choice (if available) is rsync

Old 10-20-2010, 02:46 PM   #3
Registered: Sep 2003
Posts: 76

Rep: Reputation: 15
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 -"
Old 10-20-2010, 03:43 PM   #4
Registered: Mar 2008
Posts: 11,737

Rep: Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445
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.

Last edited by jefro; 10-20-2010 at 03:44 PM.
Old 10-20-2010, 04:50 PM   #5
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1

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

Thanks.... Blaine
Old 10-20-2010, 04:52 PM   #6
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1

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



file, gzip, transfer

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring host.allow & host.deny files gardenair Linux - Newbie 7 05-11-2010 06:27 PM
ext3 performance -- very large number of files, large filesystems, etc. td3201 Linux - Server 5 11-25-2008 09:28 AM
How Do I Transfer Files From Ubuntu (Host) and XP (Guest) ?? taurusx5 Linux - Software 2 04-11-2008 01:41 AM
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 04:02 PM
Kmail ' Connection to host broken ' with large files from Gmail vangelis Linux - Software 0 10-22-2005 07:11 AM

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration