4 April 2019

How to backup my Magento v2 store


Hello there
and welcome back to another “How to” guide by Hussey Coding.

In this blog we will be looking at how to backup your Magento v2 store.
If you are still using Magento v1 then we have another blog specifically for backing up a v1 store up and ready to read, though we do recommend switching to Magento 2 at your earliest opportunity as, though some developers, such as Hussey Coding, will still offer support to Magento v1 users, all official support for Magento v1 will be ending sometime around June 2020. For more information an switching to Magento 2 please e-mail us at info@husseycoding.co.uk.

Now if you have been working with computers for any length of time at all you will already understand the importance of backing up pretty much everything you have ever done, but if you are anything like me you will have learned this lesson a little to late … like after you already lost everything. But even now, having been through that experience I still put off backing up my files, photos and other bits of info. How much more important then is it to back up your store? But again, how often do you do it?

Well, since you are reading this I will assume that today is the big day, you have decided to backup your store but you aren’t sure how or you just need a little reminder of one step or two, my friend, you have come to the right place!

In this blog we will show you
- How to enable backing up your store
- How to schedule your stores backup and
- How to manually backup your store

Before we begin
Before we start it’s important for you to understand that when using this method, Magento will be putting all of it’s resources into backing up your store so you won’t be able to do anything at all while it’s backing up. Obviously the more you backup the longer it will take so think about when you want to do it, if your store is at it’s busiest between 12pm and 3pm then that’s not the time you want to be backing up. Alternatively if you don’t want to lose any time at all there are other tools you can use to avoid your store going down however they are quite in depth and can be complicated so we would advise you speak with your store support team if you have one, if not we are happy to either help you backup your store or in some cases we can do it for you,
just e-mail us at info@hussyecoding.co.uk for more info.

Enabling & Scheduling backups
With Magento v2 your backup function will be disabled by default so you are going to have to manually go and and enable first. To do this open your Magento administration menu, go to “STORES” in your tool bar on the left and under the heading “SETTINGS”, click on “CONFIGURATION”.
On the new screen, scroll all the way down to “ADVANCED” and click “SYSTEM



 
On this screen, scroll down a little to see “BACKUP SETTINGS” and expand the box Here you will see that the default setting is set to NO, just drop down the box and select YES.
Most importantly, remember to click “SAVE CONFIG” in the top right corner, otherwise you will need to come back through all this again once you leave this page.



Scheduling backups
Unlike Magento v1 the option for enabling and scheduling are conveniently in the same place so we will cover scheduling now, since you will already be on this screen, if your backup option was already enabled then just follow the steps above to reach your scheduling options.

To schedule your backups first change the NO to YES in the drop down box


A drop down menu will appear with a few more options for you, just fill them in as you would like and your all done. We will look at these options in greater detail later on when we look at manually backing up your store. Also as with Magento v1, you can only set your store to schedule 1 back up in total so if you wanted to do weekly Database backups and monthly System backups then you would need to change the settings each time. Again, don’t forget to click “SAVE CONFIG” in the top right hand corner.




Manually backing up your Magento v2 store
To manually backup your store access your Magento v2 administration menu. On the left tool bar, scroll down to “SYSTEM” and click on it. In the pop out window, look for the heading “TOOLS” and scroll down until you see “BACKUPS” and click on it.


 
You’ll be brought to a new screen where you will have 3 options
"SYSTEM BACKUP", "DATABASE AND MEDIA BACKUP" and "DATABASE BACKUP". It’s important that you know the difference between these so you know what you are backing up.





System backup
What it does - Creates a complete backup of the database and the file system. In the next step you can choose whether to include the media folder to the backup.

When to use it - This is your big backup, the one that will save everything, the big deal here is your files, if you import any file to make changes to your store from anywhere out side of the Magento framework you want to do a System backup, if you don’t and your store gets deleted you are going to have to reload all of your outside files all over again. You have the option here to backup your media files too, so all of your stock pictures, videos etc.
Database and media backup
What it does - Creates a backup of the database and the media folder.

When to use it – This option will backup everything apart from your external files that you have used to edit your store, so whatever changes you have made within the Magento framework are included as well as all of you media files.

Database backup
What it does – Creates a backup of the database

When to use it – This is your basic backup, all the changes you’re made to your store within the Magento framework are backed up but nothing else.

Once you have chosen which type of backup you’d like to perform and clicked on it a window will pop out, the options are the same for all except for “SYSTEM BACKUP”, unlike Magento v1, your option here is to exclude rather than to include your media folders so by ticking the box you will choose NOT to save your media during this backup.




Backup name – This is optional, if you don’t give it a name then the system will just allocate a name to it which is fine but it will make it harder for you to find a specific backup.

For example, I’m running 3 stores, 1 for the U.K., 1 for U.S.A. and 1for the French side of my business. There is a big French holiday coming up that I want to take advantage of so I want to completely re arrange my store for one weekend but what I don’t want to do is spend hours re arranging it and then hours putting it back to the way it was so I decide to backup.
I click my preferred option in backup and I call the file “French store before big weekend event April 2019”.
This makes it much easier for me to find that back up. If you don’t back up a lot then it may not be a big issue but if you have a lot going on with your site and multiple users backing up then it could become a nightmare.




Then there is a tick box that we highly recommend you click, basically this will redirect customers to a page that tells them your site is undergoing some maintenance and will be back up and running as soon as possible. Magento will automatically take you out of maintenance mode once your backup is complete so you don’t have to worry about checking up on it.




Click “OK” and you’ll see a “PLEASE WAIT” wheel do it’s thing while it’s backing up. Again, please do remember that once you begin a backup you cannot do anything from either the front end or back end of your store.

And that’s it, you are now the proud owner of a backed up Magento v2 store! Congratulations. Thanks again for joining us today, we hope this blog has been helpful to you and we look forward to bringing you more “How to” guides soon. Until then, have a great day and stay safe.

Want to contact Hussey Coding? here's how
You can mail us at info@hussyecoding.co.uk
follow us on Facebook, twitter and linkedin, just search Hussey Coding or
visit our website at www.husseycoding.co.uk

No comments:

Post a Comment