LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2005, 03:15 PM   #1
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Rep: Reputation: 15
Website Transfers


Hi. I'm trying to transfer 50GB of files from server to server. I do NOT want to download 50GB to my comp and upload it to the new server. I rather just transfer it directly to the server.

I'm using a CentOS 4.1 CPanel machine with no diskspace left. Im trying to transfer it to (I think) a Redhat9 Direct Admin machine. That has an empty 200GB drive. Ive tried FXP but I cant seem to get that working on the DA machine. FXP works fine on my CPanel box. My DA box uses ProFTP. The 50GB is seperated into about 500 different files so I cant transfer 1 by one. I cant zip it and transfer the zip because i have NO diskspace left on my CP server. I was wandering if anyone had any ideas how to transfer?

I'm willing to configure proftp again if anyone knows a working setting for DA. And I'm willing to try many other things. My latest idea was use the built in command line ftp client. If i can download entire folders, i should be fine.

Thanx alot.
 
Old 10-03-2005, 04:32 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

Can you ssh from the source machine to the target machine?

Dave

Last edited by ilikejam; 10-03-2005 at 04:40 PM.
 
Old 10-03-2005, 05:45 PM   #3
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Via command line? I'm not sure. How do I use command line to ssh into another server?
 
Old 10-03-2005, 05:48 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
'ssh username@serveraddress'

For example, "ssh alanjef@ilikejam.dyndns.org"

Dave

Last edited by ilikejam; 10-03-2005 at 06:28 PM.
 
Old 10-03-2005, 05:53 PM   #5
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Oh. Yes i can login
 
Old 10-03-2005, 06:06 PM   #6
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
The suspense is killing me! LOL. So whats the plan?
 
Old 10-03-2005, 06:06 PM   #7
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
OK. Here's what to do.

On the source machine:
Code:
mkfifo tarfifo
tar cjvf tarfifo /path/to/files &
[hit return to get your prompt back]
cat tarfifo | ssh user@redhatmachine "cat - > /path/to/empty/disk/out.tar.bz2"
[enter your password, and wait for the transfer to finish]
rm tarfifo
That will create a tar.bzip2 file called 'out.tar.bz2' on the empty disk on the target machine, which will contain the contents of /path/to/files. All the disk space you'll need on the source machine is enough inodes to make a single named pipe (tarfifo).

Dave

Last edited by ilikejam; 10-03-2005 at 06:10 PM.
 
Old 10-03-2005, 06:15 PM   #8
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
is there supposed to be a status bar to see how the transfer is going?
 
Old 10-03-2005, 06:25 PM   #9
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Nope. You should see the filenames of the files being compressed in your shell. Everything's sent as it compresses.
 
Old 10-03-2005, 06:31 PM   #10
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
You could always ssh into the target machine in a different shell, and check up on the size of the tar.bz2 file too.
 
Old 10-03-2005, 06:34 PM   #11
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Yes, i just did that. I dont see anything happening on source machine but file is getting bigger on target machine. I just hope it continues uploading the whole 50gig .
 
Old 10-03-2005, 06:59 PM   #12
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Let me know how you get on. Hope you're not doing this over 56k modems....
 
Old 10-06-2005, 12:14 PM   #13
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Hi. err im having some problems.

1. Connections keep breaking. After i transfered 18GB it just broke. I started transfering each section individually to solve the problem

2. when i transfered a complete .tar.bz2 file, it wudnt extract.

There was sumthin else... but i forgot. Any way. Is there a way to transfer it over ssh without compressing it? just transfer the entire folder and its contents?
 
Old 10-07-2005, 09:09 AM   #14
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
You could try 'scp -r'. That should copy whole directories.
 
Old 10-07-2005, 09:55 AM   #15
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
how do i use scp - r?
 
  


Reply


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
Transfers cause Freezeups clarence1720 Linux - General 15 11-30-2004 08:29 PM
rsync always transfers brentos Linux - Software 2 04-29-2004 07:53 PM
dcc transfers ip tables phatbastard Linux - Newbie 0 03-09-2004 01:09 AM
Program transfers rootman147 Slackware 3 07-26-2002 02:14 PM
file transfers in Gaim anyone? shassouneh Linux - Networking 2 03-29-2002 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:47 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