July 22, 2008
6:44 am

WordPress backup & moving your files:

  1. Double-click your putty.exe icon or shortcut, and Login to both your new mt (gs) server and your old server via SSH. For easy reference, the new mt (gs) server will be called newserver and the old DreamHost will be oldserver.
  2. Change the location on both newserver and oldserver to public folder.
  3. Now, click open oldserver, use the tar command to compress your WordPress folder.

    tar cvzf wordpress.tar.gz  wordpress/*

    wordpress.tar.gz is your compressed WordPress backup file, change the file name as you like.
    wordpress/* is the location of exisiting WordPress folder on oldserver. Change it with your WordPress folder name.

  4. Use the same tar command to backup your other files and folders.
  5. Now click newserver SSH window, and type ftp your-oldserver.com into the shell command to ftping (login) to your oldserver account.

    ftp your-oldserver.com, change “your-oldserver.com” with your old server host name, in my case it was (myserver.dreamhost.com)

    When prompted, enter your oldserver user name and password. If you’ve enter correct server name, user name and password. You’ll get a new ftp> window. Now, we’ve established an FTP connection over SSH to our oldserver from newserver, we can start transfering files.

    • Type get wordpress.tar.gz to get the WordPress backup file (see point 3), if you’ve not change the file name, else replace file name accordingly(see point 3).
    • Type get mysqldb.tar.gz, that we backup earlier, reffer Step 1
    • Finally type get command to tranfer all other files, including .htaccess, robots.txt ectc.
  6. Now on the newserver, uncompress your transfered archive files with tar command:

    tar xvzf wordpress.tar.gz

    The above command will uncompress and entire directory structure will be recreated. Please replace wordpress.tar.gz, with your file name.

    tar xvzf mysqldb.tar.gz

    This command will uncompress your WordPress mysql database file. Type tar command to uncompress all other files.

Uploading MySQL database

Assuming you've created new database, it's time to import the database, do the following on the new server:

mysql dbname# -hdb_host -u Username -p Password < mysqldb.sql

  • Replace dbname# with the name of the database, you’ve create on newserver
  • Replace db_host with MySQL host name from your activation email.
  • Username is replaced by the MySQL username
  • Password is replaced by the MySQL password
  • mysqldb.sql is replaced by the file name that you’ve uncompressed above (see point 6)

If you've followed and did exactly, everything will import cleanly

Ok, now you've moved your WordPress files & folder and MySQL database to the new server!

Pages: 1 2 3 4 5

Loading

Contextual Related Posts:

No followup yet

Leave a Response

Comment Preview
« WordPress For iPhone App 1.0Windows Live for Windows Mobile updates »
Feed Icon

Subscribe via RSS or email: