Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Upgrade Wordpress: Backing up the right way

Discussion in 'Misc WordPress Requests' started by Steve Stern, Dec 17, 2017.

  1. Steve Stern

    Guest

    Reply To: Upgrade Wordpress: Backing up the right way, by Steve Stern

    It seems you’re comfortable at the command line. YAY!

    Backup:

    tar -c /path/to/wordpress |gzip > /tmp/thesite.tgz
    mysqldump -u root -p thesitedatabase |gzip > /tmp/thesite.sql.gz

    put those files someplace safe

    Restore:

    upload the files to /tmp on your new site
    cd /tmp
    gzip -d thesite.sql.gz
    (assuming database already exists)
    mysql -u root -p thesitedatabase < tehsite.sql
    cd /path/to/wordpress
    tar zxvf /tmp/thesite.tgz

    Reply To: Upgrade Wordpress: Backing up the right way
     
    #1

Share This Page

Monarch Social Sharing Plugin