Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 3rd, 2001, 03:47 AM
spaceman spaceman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 1999
Location: Perth, Western Australia
Posts: 53 spaceman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 sec
Reputation Power: 9
Question

Hi,

I want to move a fairly large web site from one UNIX/Apache server to another (ie. from one hosting service to another).

So, in a nutshell, I'm looking for the quickest, easiest solution for getting it from A to B.

The site uses PHP & MySQL. I'm comfortable dumping the MySQL database and reloading it on the new server, but what I'm not 100% confident about is the correct command line syntax to dump all the files, directories, and sub-directories - complete with chmod/chown permissions if possible - and then the correct command line syntax to restore it on the new server.

I think tar and gunzip are the way to go, but can someone give me some solid guidance with some exact command line syntax?

Thanks very much.

Reply With Quote
  #2  
Old April 3rd, 2001, 06:25 AM
carpediem-it carpediem-it is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 56 carpediem-it User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Using telnet, if the web directory is in your home directory use
tar -czvf web.tar.gz web

This will create a file called web.tar.gz that contains the content of web

ftp this to the new host then use
tar -pxzf web.tar.gz

This will uncompress it

You will probably need to
chown newuser.group web -R

But check with your new host as they should help

Regards
Darren
__________________
HTTP://WWW.PHP4HOSTING.COM ($) HTTP://WWW.PHP4HOSTING.CO.UK (£)
Website Hosting from $4.80/£3pm -- .COM/.NET $39.98/£24.99
PHP4, MySQL (Root Access), Full CGI-BIN, Shell Access, FTP, POP3, WAP
Full Control Reseller Accounts, unlimited domains, FTP, POP, MySQL,PHP4

Reply With Quote
  #3  
Old April 3rd, 2001, 08:40 AM
spaceman spaceman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 1999
Location: Perth, Western Australia
Posts: 53 spaceman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 sec
Reputation Power: 9
Sounds just the ticket. Thanks mate.

Reply With Quote
  #4  
Old April 3rd, 2001, 03:06 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Another alternative:

Try rsync -> http://rsync.samba.org/

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Moving my web site


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway