|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Sounds just the ticket. Thanks mate.
|
|
#4
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Moving my web site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|