Question

Best way to install multiple wordpress (5-7) and migrate the content from old host?

Lets say I have 4Gb ubuntu 64 bit 14 Droplet.

How to transfer the backup


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@srjcooldude

You can use scp to transfer files and database dumps (i.e. SQL files) if SSH is enabled on the current account with your existing provider.

You can tar the files and transfer the archive over scp.

For example, if your home directory for one of your sites is:

/home/username/public_html/

You could login via SSH and run:

tar -zcvf mysitename.tar.gz /home/username/public_html

You’d then repeat that for each site, then use scp to pull them over. To do a recursive transfer, you could use:

scp -r user@currenthost.com:/path/to/tar_files .

If you want to transfer each file one-by-one:

scp user@currenthost.com:/path/to/mysitename.tar.gz .

The . at the end of the above commands tells scp to drop the files in the current directory you’re in. You can replace . with a path on the Droplet too.

As far as backing up the databases, you can do that from the CLI as well:

mysqldump -u dbuser -p dbname > mysitename_db.sql

Where dbuser is the database username, dbname is the database name, and the -p will prompt you to enter in the password for the database. You’d do this for each database, and transfer those files over with scp as well.

Restoring the databases can be done from the CLI using almost the same command (we just strip dump off the main command).

mysql -u dbuser -p dbname < mysitename_db.sql