Benny on DevBenny on Dev Making your software development career a fun

The fastest way to migrate your website using wget

Wget is an ultra-fast command-line utility for downloading files from the web. With Wget, you can download files using HTTP, HTTPS, and FTP protocols.

In this post, I will be showing you how I use wget to migrate a large website from one server to another without downloading any file

To use the wget tool make sure the designation server or host has ssh or terminal access

Step 1

Zip or compress the content of your website root, give a simple name like “files.zip”,
Place this files.zip on the root directory of your website, this means if opening https://bennyondev.com/files.zip on the browser should start downloading files.zip

Step 2

Head over to the destination server, open the terminal and log in via ssh, on desired location (where you want to download files.zip to be saved)

wget https://bennyondev.com/files.zip

The above command will start downloading files.zip

this is helpful too if you are migrating a website of about 2gb files or more, using wget you won’t download and upload

If you had any issues using wget please post in the comment section

Leave a Reply

Your email address will not be published. Required fields are marked *

Press ESC to close