Free and Unlimited Web Hosting

How to backup your website?

How to backup your website?

Good website administration requires making backups of your account regularly and storing them somewhere safe yourself. You also need to download backups in order to migrate website to other hosting accounts.

InfinityFree does not create or store any backups of free hosting accounts. It’s your responsibility to regularly create backups, and to store them somewhere safely.

Backup your website files

The best way to backup your website files is by downloading them using a desktop FTP client.

  1. Open an FTP connection to your account (more info).
  2. Find the htdocs folder of the website you’re trying to back up.
  3. Download the htdocs folder to your computer. In FileZilla, this is as easy as dragging the htdocs directory from the pane on the right to the left.

If you have a large website, it may take a long time for the download to complete.

Backup your databases

You can download database backups through phpMyAdmin.

  1. Login to the control panel of your account.
  2. Click the phpMyAdmin button.
  3. Click the Connect Now button next to the database you would like to download.
  4. Go to the Export tab.
  5. Click the Start button.

Note about generating ZIP files on the server

Some file managers have the option to create and extract ZIP files of your website “on the server”.

However, note that the file managers use FTP, and FTP does not support managing archives on the target server. This means the file manager creates or extracts the zip file on the file manager server, similar to how you can create or extract archives on your own computer.

Additionally, web based file managers are not good at dealing with large archives, and may break while handling the archives.

Finally, please note that there is a file size limit of 10 MB on free hosting, so you may not be able to package your entire website on your hosting account.

Note about backup scripts

Some CMS have a built-in backup options, or have plugins which can make backups. InfinityFree does not recommend using such tools.

While backup plugins look easy to use, they often involve running extremely complex PHP code to generate the backups. These backup scripts frequently break down because of file size limits or PHP execution time limits, leading to incomplete or corrupt backups.

And even if the backup scripts completes successfully, you may run into similar issues when restoring the backup, meaning the backups are effectively useless.

That is why you should not use backup tools and plugins, and only create backups through FTP and phpMyAdmin.

Still have questions? Check our forum!