{"id":199,"date":"2016-03-01T20:20:25","date_gmt":"2016-03-01T17:20:25","guid":{"rendered":"http:\/\/presta.site\/blog\/?p=199"},"modified":"2016-03-01T20:25:58","modified_gmt":"2016-03-01T17:25:58","slug":"how-to-create-a-backup-in-prestashop","status":"publish","type":"post","link":"https:\/\/presta.site\/blog\/en\/how-to-create-a-backup-in-prestashop\/","title":{"rendered":"How to create a backup in PrestaShop"},"content":{"rendered":"<p><span style=\"font-weight: bold;\">You should always have a backup.<\/span><\/p>\n<p>Your shop could be damaged by everything &#8212; malware infection, crazy developers, hosting problems etc. But if you have an up-to-date backup, then you are safe.<\/p>\n<p><!--more--><\/p>\n<p>In order to make a complete backup of your site, <span class=\"bold\">you need to create a backup of files and a backup of database<\/span>.<\/p>\n<p>If you have an access to some hosting control panel, then you can use its tools for backup creation. For example, in the ISPmanager panel you can find it at page &#171;Backup plan management&#187;.<\/p>\n<p>Also you can use a special <strong>PrestaShop module for backup<\/strong>. Take a look at this one: <a href=\"http:\/\/presta.site\/prestashop-modules\/17-prestashop-backup-pro.html\" target=\"_blank\">http:\/\/presta.site\/prestashop-modules\/17-prestashop-backup-pro.html<\/a>. It allows you to create both files backup and database backup and easily restore them.<\/p>\n<p>But if you don&#8217;t have any special tools, it is possible to go without them.<\/p>\n<h3>1) Files backup<\/h3>\n<p>PrestaShop doesn&#8217;t offer any tools for making backup of site files, so you have to do it by your hands.<\/p>\n<p>The easies way is a downloading of all files by FTP. Download them, make an archive and copy it to a safe place. It could take a lot of time, but it will definitely work on any hosting.<\/p>\n<p>Basically, site files are changed pretty seldom (of course, if your site is not in development) and so you are not required to create a backup of files very often.<\/p>\n<h3>2) Database backup<\/h3>\n<p>PrestaShop has a tool for creating database backups. Go to your Back Office: &#171;Advanced Parameters -> DB Backup&#187;.<br \/>\nThat page look like this:<\/p>\n<p><a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/1.png\" alt=\"1\" width=\"1023\" height=\"545\" class=\"aligncenter size-full wp-image-207\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/1.png 1023w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/1-300x160.png 300w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/1-768x409.png 768w\" sizes=\"(max-width: 1023px) 100vw, 1023px\" \/><\/a><\/p>\n<p>You have to agree with disclaimer by pressing related button. After that the backup creation will be started.<\/p>\n<p>The restore process is described at the same page. Usually it is performed with PhpMyAdmin.<\/p>\n<p>Database backup should be created frequently, because database contains all shop data &#8212; orders, customers, products etc. The more often you create backup &#8212; the safer your data. The best practice is using <strong>auto backup<\/strong>. PrestaShop doesn&#8217;t offer auto backup, but you can use a special <a href=\"http:\/\/presta.site\/prestashop-modules\/17-prestashop-backup-pro.html\" target=\"_blank\">backup module<\/a>.<\/p>\n<p><span class=\"bold\">It is better to keep your backups in a safe place.<\/span> (And the PrestaBackup module allows you to store backups on your <strong>Google Drive<\/strong>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You should always have a backup. Your shop could be damaged by everything &#8212; malware infection, crazy developers, hosting problems etc. But if you have an up-to-date backup, then you are safe.<\/p>\n","protected":false},"author":1,"featured_media":123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/199"}],"collection":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/comments?post=199"}],"version-history":[{"count":9,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/199\/revisions"}],"predecessor-version":[{"id":209,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/199\/revisions\/209"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media\/123"}],"wp:attachment":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media?parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/categories?post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/tags?post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}