Closed Thread Icon

Topic awaiting preservation: Migration... any easier? Pages that link to <a href="https://ozoneasylum.com/backlink?for=26872" title="Pages that link to Topic awaiting preservation: Migration... any easier?" rel="nofollow" >Topic awaiting preservation: Migration... any easier?\

 
Author Thread
zavaboy
Bipolar (III) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 10-21-2005 03:27

I need to migrate my websites on my domain to another server. I was thinking if I could make a Perl/Shell script to copy the 50+ MB of files I have to my new server over an FTP connection. But I found one problem, I don't know enough Perl or Shell to do it. Is there an easier way? I want to copy all files and folders (including everything under my user and user nobody) to my new server.

I have to be migrated and set all up before the end of this month.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 10-21-2005 05:19

Forgive my possible ignorance on this issue, but couldn't you use pretty much any FTP app to do this with a simple drag and drop?

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 10-21-2005 05:32

Yes, I can't quite see what the issue is here. Open up your ftp client, connect to your original site. Download everything. Disconnect, then connect to your new host, upload everything. Done. Any scripts which are hard-coded with absolute URLs will need to be altered, however.


Justice 4 Pat Richard

(Edited by Skaarjj on 10-21-2005 05:33)

briggl
Paranoid (IV) Inmate

From: New England
Insane since: Sep 2000

posted posted 10-21-2005 06:05

I think zavaboy wants to copy them from directly from the old server to the new server.


DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 10-21-2005 06:24

Can that not be done with an FTP app?

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 10-21-2005 06:29

well... you could shell into your original server, use tar and gzip to create an archive, and remember where in your tree it is, then shell into your new server, use wget to download it remotely, unzip and open the tar, hey presto, done.


Justice 4 Pat Richard

briggl
Paranoid (IV) Inmate

From: New England
Insane since: Sep 2000

posted posted 10-21-2005 07:23
quote:
Can that not be done with an FTP app?


Some of them, but the servers need to support third-party FTP transfers.


bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-21-2005 07:52

Provided you have shell access and it's supported, you can use scp pretty much the same as a cp only a few more on top

scp -r webrootdir/* username@servername.com:/pathToNewWebRoot/.



.:[ Never resist a perfect moment ]:.

zavaboy
Bipolar (III) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 10-21-2005 15:39

I need file permissions intact... this includes files owned by user nobody (PHP). A manual FTP transfer would only take care of stuff I own.

Edit: I do have shell access... on both servers.



(Edited by zavaboy on 10-21-2005 16:01)

zavaboy
Bipolar (III) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 10-22-2005 01:47

Ok, I ran the scp and got all the files over to the new server. Is there any way to perform a search and replace on all files?

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-22-2005 02:54

Check out this



.:[ Never resist a perfect moment ]:.

« BackwardsOnwards »

Show Forum Drop Down Menu