Reply
how do I transfer 40gb between 2 servers?
Old 10-13-2009, 11:29 AM Red face how do I transfer 40gb between 2 servers?
Novice Talker

Posts: 8
Trades: 0
Hi,
I have my old server with 40gb of vital files on it and a new one which is hosted elsewhere. I need to transfer the files across.

The old server has debian 5/virtualmin, the new one has WHM/cpanel

I tried running a backup in virtualmin, but it said it couldn't do it.

I tried using flashfxp, but it didn't work and gave an error message.

any ideas will be very very very appreciated. I'm completely stuck

thanks
dimensio is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-13-2009, 11:32 AM Re: how do I transfer 40gb between 2 servers?
rednimaT's Avatar
Skilled Talker

Posts: 65
Name: Taminder B.
Location: San Jose, CA
Trades: 0
you can download a PHP transfer script (Google it, there are many available).
they will run in the background.
__________________
NRG Lab - Web Design Services & Resources
(HTML/PHP/MySQL/JavaScript/AJAX/SEO)
rednimaT is offline
Reply With Quote
View Public Profile Visit rednimaT's homepage!
 
Old 10-13-2009, 11:57 AM Re: how do I transfer 40gb between 2 servers?
Novice Talker

Posts: 8
Trades: 0
reason I am transferring servers is PHP doesn't work on it as apache module isn't configured correctly for that mime type. any other ideas?
dimensio is offline
Reply With Quote
View Public Profile
 
Old 10-13-2009, 07:02 PM Re: how do I transfer 40gb between 2 servers?
tripy's Avatar
Do not try this at home!

Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Do you have shell / ssh / remote desktop access to both machines ?
And if yes, which os is installed on them ?
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is online now
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-13-2009, 07:23 PM Re: how do I transfer 40gb between 2 servers?
Novice Talker

Posts: 8
Trades: 0
Hi,
thanks for trying to help. Yes I have shell access (SSH) access.

OD? what is oD? They are running

Debian linux 5 + virtualmin on source server and
CentOS / WHM on the destination server

I still haven't managed to transfer the files. I really need something that will transfer the whole folder, as their are lots of individual files, so I don't really want to use get: and go through every one seperately.
dimensio is offline
Reply With Quote
View Public Profile
 
Old 10-13-2009, 07:41 PM Re: how do I transfer 40gb between 2 servers?
tripy's Avatar
Do not try this at home!

Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
OD? what is oD? They are running
My bad, this was a typo. It was OS, not OD.

From your standpoint, I see 2 solutions:
1) scp (ssh copy)
Code:
ssh user@oldComputer
cd /my/directory
scp -r . user@newComputer:/my/new/directory
This will copy recursively every files from the 1st computer to the second via ssh

2)
Code:
ssh user@oldComputer
cd /my/directory
tar cvzf backup.tgz .
scp backup.tgz user@newComputer:/my/new/directory
logoff oldComputer
ssh user@newComputer
cd /my/new/directory
tar xvzfp backup.tgz
This creates a backup on the first computer, send it to the new one.
Then you log on the new computer and decompress the backup.

Those are the 2 first methods that come to my mind.
Of course, I consider that you just need to move files from 1 precise directory.
If you need several, then you'll need to compose from there.
The same for the databases, if you want to copy them, you will need to mmake a dump sql file first, then copy the file, and then reimport on the new server
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 10-13-2009 at 07:43 PM..
tripy is online now
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-14-2009, 11:22 AM Re: how do I transfer 40gb between 2 servers?
Brian07002's Avatar
Defies a Status

Posts: 1,585
Name: ...
Location: ...
Trades: 0
I really don't know why you do it the hard way
gZip the folder that includes all subs. That's always the easiest and safest way
__________________
Sig Less - Have some site you want me to put here? Will put here for a couple of paypal bucks.

Last edited by Brian07002; 10-14-2009 at 11:45 AM..
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 10-14-2009, 03:27 PM Re: how do I transfer 40gb between 2 servers?
Novice Talker

Posts: 8
Trades: 0
Hi,
what command do I execute to gzip an entire folder?? please give an example. the folder is

home/public_html/downloads/
dimensio is offline
Reply With Quote
View Public Profile
 
Old 10-14-2009, 03:56 PM Re: how do I transfer 40gb between 2 servers?
tripy's Avatar
Do not try this at home!

Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Make an archive with this:
Code:
tar cvzf myArchive.tgz /home/user/directoryToArchive
and to restore on the other machine
Code:
cd /place/to/restore
tar xvzf myArchive.tgz
And remember that if you are unsure of the arguments, you always (or almost) have the "man" command:
Code:
man tar [enter]
TAR(1)                                tar                               TAR(1)



NAME
       tar - The GNU version of the tar archiving utility

SYNOPSIS
       tar <operation> [options]

       Operations:
       [-]A --catenate --concatenate
       [-]c --create
       [-]d --diff --compare
       [-]r --append
       [-]t --list
       [-]u --update
       [-]x --extract --get
       --delete

       Common Options:
       -C, --directory DIR
       -f, --file F
....
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is online now
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-16-2009, 10:04 AM Re: how do I transfer 40gb between 2 servers?
Novice Talker

Posts: 8
Trades: 0
I am getting the following error:


Code:
/public_html/downloads: No such file or directory
downloads@ks000197:~/public_html/downloads$ scp -r . gt6@94.23.000.128 /downloads
/downloads: No such file or directory
downloads@ks000197:~/public_html/downloads$
If you can do this for me, I will happily send you $10 via paypal.If your willing to help me by doing this, Email me(theilluminated@gmail.com) as I can't send private messages as I don't have enough posts.
dimensio is offline
Reply With Quote
View Public Profile
 
Old 10-16-2009, 10:26 AM Re: how do I transfer 40gb between 2 servers?
tripy's Avatar
Do not try this at home!

Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
the syntax is wrong.
Add a semicolon between the destination host and path.
Code:
scp -r . gt6@94.23.000.128:/downloads
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is online now
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to how do I transfer 40gb between 2 servers?
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.15224 seconds with 13 queries