Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
10-03-2005, 03:15 PM
|
#1
|
Member
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72
Rep:
|
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.
|
|
|
10-03-2005, 04:32 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
Hi.
Can you ssh from the source machine to the target machine?
Dave
Last edited by ilikejam; 10-03-2005 at 04:40 PM.
|
|
|
10-03-2005, 05:45 PM
|
#3
|
Member
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72
Original Poster
Rep:
|
Via command line? I'm not sure. How do I use command line to ssh into another server?
|
|
|
10-03-2005, 05:48 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
'ssh username@serveraddress'
For example, "ssh alanjef@ilikejam.dyndns.org"
Dave
Last edited by ilikejam; 10-03-2005 at 06:28 PM.
|
|
|
10-03-2005, 05:53 PM
|
#5
|
Member
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72
Original Poster
Rep:
|
Oh. Yes i can login
|
|
|
10-03-2005, 06:06 PM
|
#6
|
Member
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72
Original Poster
Rep:
|
The suspense is killing me! LOL. So whats the plan?
|
|
|
10-03-2005, 06:06 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
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.
|
|
|
10-03-2005, 06:15 PM
|
#8
|
Member
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72
Original Poster
Rep:
|
is there supposed to be a status bar to see how the transfer is going?
|
|
|
10-03-2005, 06:25 PM
|
#9
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
Nope. You should see the filenames of the files being compressed in your shell. Everything's sent as it compresses.
|
|
|
10-03-2005, 06:31 PM
|
#10
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
You could always ssh into the target machine in a different shell, and check up on the size of the tar.bz2 file too.
|
|
|
10-03-2005, 06:34 PM
|
#11
|
Member
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72
Original Poster
Rep:
|
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 .
|
|
|
10-03-2005, 06:59 PM
|
#12
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
Let me know how you get on. Hope you're not doing this over 56k modems....
|
|
|
10-06-2005, 12:14 PM
|
#13
|
Member
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72
Original Poster
Rep:
|
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?
|
|
|
10-07-2005, 09:09 AM
|
#14
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
You could try 'scp -r'. That should copy whole directories.
|
|
|
10-07-2005, 09:55 AM
|
#15
|
Member
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72
Original Poster
Rep:
|
how do i use scp - r?
|
|
|
All times are GMT -5. The time now is 10:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|