40% OFf Black Week

Website Backups

Losing your website data is no joke, so it pays to have contingency plans in place to get your website back if the worst happens. To help you keep your website safe, Publii includes a backup and restore feature that lets you instantly save a copy of a Publii website into a compressed file, ready to be loaded back up later if needed.

Backing Up Your Website

To create a backup of your website, click on the Tools option in the main menu to view the available tools in Publii, then click on the Backups option at the top to go to the backups screen. Here you will see a list of available backups, which will of course be empty if you've yet to create your first. To make a new backup of your current website, click the Create backup button at the top-right of the section; a pop-up will open allowing you to enter a name for your backup; this defaults to a unique name with the format backup-date-time, but you can enter any name that you wish, then click OK. After a few moments your new backup will be created and added to the list.

Publii Website Backup Option

Restoring Your Site

To restore an existing backup of your site, click on the Tools option in the main menu, then click on the Backups option to open the backups screen. In the list of available backups, find the one you wish to use, and click the Restore button to the right of the listing; a popup will appear asking for confirmation that you wish to restore from this backup. Double-check that the file you are restoring is correct, as once the process is started all files will be overwritten and the restore cannot be rolled back. Once ready, click OK if you wish to continue; the backup will be loaded and a confirmation message will appear once the website is restored.

Restoring Backups on a New Publii Installation

If you've switched to a new computer and want to restore your site backup to a new Publii installation, you'll have to take a couple of additional steps:

  1. Install and open Publii, and create a site; the name isn't important, but you will need access to a site before you can access the Backups tool. 
  2. make sure that you have specified a Backup Location in the Global Settings of Publii. 
  3. In the backup directory, create a new folder and give it the same name as the site, but use lower-case only. If your site has spaces, replace them with hyphens e.g. if your site name is My Site, then the folder's name should be my-site. Alternatively, you can create a backup of your empty site using the method detailed above, which will create the site folder for you. Then, click on the backup name on the Backup to open the target folder.
  4. Copy your backup file into the new folder.
  5. Now, in Publii, click on Tools in the left-sidebar and open the Backups tool; you will see your backup appear in the list. 
  6. Click on the Restore button next to your backup; a dialogue box asking for confirmation will appear. Click the Restore backup button to begin the restore process.
  7. Your site is now ready to use!