What do you need to back up?
A PrestaShop store has two parts. The files hold the program, your theme and your product pictures. The database is like a filing cabinet that holds products, orders and customers. You need both for a full backup. One without the other is not enough.
Make a backup before updates, before installing modules and before big changes.
Part 1: Back up the files
- Log in to the client area and open your hosting control panel.
- Open File Manager.
- Go to your PrestaShop folder, often
public_html. - Select all files and folders.
- Click Compress and choose Zip Archive.
- Name it with the date, then click Compress File(s).
- Right-click the ZIP and choose Download.
Part 2: Back up the database with phpMyAdmin
phpMyAdmin is a tool in your control panel for working with databases.
- Open phpMyAdmin in the control panel.
- On the left, click the database your store uses. If you are not sure which one, open
app/config/parameters.php(version 1.7) orconfig/settings.inc.php(version 1.6) and look for the database name. - Click the Export tab.
- Leave the method as Quick and the format as SQL.
- Click Go. A file ending in
.sqldownloads.
Another way: backup inside PrestaShop
- Log in to your back office.
- Go to Advanced Parameters, then Database, then DB Backup. In version 1.6 it is under Advanced Parameters, then DB Backup.
- Click Create a new backup.
- When it finishes, click the link to download the file.
This saves only the database. The files still need Part 1.
Tip: Store your backups on your own computer or in another safe place, not only on the server.
To restore
Warning: Restoring replaces current data. Take a fresh backup first if the site still works.
- Upload the ZIP in File Manager and extract it over your store folder.
- In phpMyAdmin, choose your database and click Import. Select your
.sqlfile and click Go.
Quick recap
- Back up files and database together.
- Zip the files in File Manager.
- Export the database in phpMyAdmin or from the back office.
- Keep copies away from the server.