HostMonster Web Hosting Help

Pushing Website from old host to


How to Transfer hosted files from old host to via ssh.

Your old host must have SSH access to perform this move.

Using SSH to transfer files to HostMonster


If your old host has SSH access and you are able to make outbound shell connections from that server, you can do quite a large bit of the file transfer directly from your old server. Please note that this process will only transfer the files located in a specified folder. This will also require shell access to be enabled on your account with us.

Click Here for information on obtaining SSH/Shell Access.

First compress the folder on the old host's server with tar. We are creating a compressed copy of your site folder called archive.tar.gz.

           tar -czf archive.tar.gz /nameoffolder/
This will create a file called archive.tar.gz and should contain your site folder.

Second we push archive.tar.gz to your HostMonster account.

           scp archive.tar.gz
Please note that this scp command is also run from your old host's server. Also, "" can be replaced with your domain name, or the IP address of our server your account is on, which ever one will work correctly.

Next log into our servers through shell, and run these commands. They will first move your archive into the directory you want to unpackage the files into (usually the public_html directory), then change directories to that same one, so you can then extract the archive.

   mv archive.tar.gz path/to/destination/folder/
           cd path/to/destination/folder/
           tar -xzf archive.tar.gz
This should have moved much, if not all, of your website's documents.
Knowledgebase Article 92,349 views bookmark tags: file host site transfer (updated 2109 days ago)

Was this resource helpful?

Did this resolve your issue?

Please add any other comments or suggestions about this content:

Recommended Help Content

I need to transfer my website from my old host to HostMonster, but I do not know how to do it without losing files or mail. (updated 96 days ago)
Knowledgebase Article 270,326 views tags: transfer upload website

What steps are necessary if I decide to transfer a domain to another registrar? (updated 1000 days ago)
Knowledgebase Article 213,530 views tags: company domain epp host registrar site steps transfer website

There are many ways that you can transfer files and folder to and from your hosting account. We highly recommend using an FTP (File Transfer Protocol) program to quickly upload and download files. We (updated 1106 days ago)
Getting Started Article 154,088 views tags: file files filezilla manager setup

Related Help Content

Clients in China are unable to view my website. My website's content doesn't contain any objectionable material. (updated 2092 days ago)
Knowledgebase Article 103,910 views tags: access block blocking domain name people site website

How to restore individual files or folders with the Site Backup & Restore tool (updated 1456 days ago)
Knowledgebase Article 98,547 views tags: backup files folders restore site

Is SSH/Shell access enabled by default? (updated 1285 days ago)
Knowledgebase Article 338,007 views tags: bash command line secure shell ssh

How do I upload my web site? (updated 532 days ago)
Knowledgebase Article 1,237,940 views tags: ftp site upload uploading web website

This article will show you how to access your WordPress site. (updated 112 days ago)
Knowledgebase Article 9,584 views tags: access admin change dashboard edit login site wordpress

How to generate and use SSH Keys (updated 568 days ago)
Knowledgebase Article 34,905 views tags: dedicated ssh

The website is taking a long time to load. It just seems slower today than normal. (updated 96 days ago)
Knowledgebase Article 204,531 views tags: site slow web website

Why don't my images display on my site? (updated 2109 days ago)
Knowledgebase Article 94,144 views tags: display image images link site website