LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 1
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
 
Old 10-20-2010, 02:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

The best choice (if available) is rsync


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

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

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
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
blainemiller
Member
 
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
eyt,

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

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

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


Reply

Tags
file, gzip, transfer



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 AM.

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