Press "Enter" to skip to content

Snippet: New Blog Housey!

If you are reading this, you are now accessing Richy’s Random Ramblings at it’s new server home!

Wooopie!

However: it could take up to 48 hours for all the DNS servers to work their magic, so be careful of dragons until then.

Here’s two handy commands when moving a site from one server to another:

wget -t0 --progress=dot -S -nH --cut-dirs=2 -m --passive-ftp ftp://[OLD_FTP_USERNAME]:[OLD_FTP_PASSWORD]@[OLD_HOST]:[OLD_FTP_PORT]/[OLD_PATH_TO_WEBROOT]/*#

Replace the [] information with the applicable details for your situation and run it in your public_html folder on your new machine (if your old setup didn’t have a structure similar to “/home/username/” then you may need to change the –cut-dirs=XX value to match the “depth”. For safeties sake, once it’s copied everything you’d best do a chown NEWUSERNAME:NEWUSERGROUP -R * and chmod a-w * -R to ensure the file permissions are set correctly.

mysql -u[DB_USERNAME] -p[DB_PASSWORD] -h127.0.0.1 [DB_DBNAME]
Import the contents of SQLFILE.SQL into MySQL.

4 Comments

  1. 11 12 13?

Comments are closed.