Showing posts with label "How to" guide. Show all posts
Showing posts with label "How to" guide. Show all posts

4 April 2019

How to backup your M2 store

Hello there and welcome back to another blog
by Hussey Coding.

In this blog, we will be looking at how to backup your Magento 2 store.

If you are still using Magento 1 then we do have another blog that shows you how to back up an M1 store, to read it click HERE. We recommend migrating to M2 as soon as possible since all official M1 support has stopped from Adobe. And yes, we know there are still some developers offering support to M1 users, but they won't be around forever, as technologies and systems move on, so will the developers.


For more information on switching to M2, you can e-mail us at info@husseycoding.co.uk. Alternatively, you can head to www.developerconnection.co.uk where you can find developers to help you with migration and all of your other Magento project needs.


If you have been using computers for any length of time, you will understand the necessity of backups. But if you are anything like me you will have learned this lesson a little too late … like after you already lost everything. The thing is that 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 actually do it?


Since you are reading this, I will assume that today is the big day! You have decided to backup your store but maybe 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

You need to understand that when using this method to back up your M2 store, the Magento platform will be putting all of its resources into the backup. This means that you won’t be able to do anything at all while it is backing up!


Obviously the more you backup, the longer the process will take so think carefully about when you want to do it. If your store is at its busiest between 12pm and 3pm then that's not the time you want to be backing up. Alternatively, if you don’t want to suffer any downtime at all, there are other tools you can use to avoid this. However, they are quite in-depth and complicated so we would advise you contact 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

The M2 backup function is disabled by default, so you are going to have to change it manually before you can initiate any backups. To do this, open your Magento administration menu, go to STORES in the toolbar 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. 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 or, you will need to come back and do all of this again.



Scheduling backups

Unlike the M1 setup, 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 you have already enabled backups, 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 in a moment when we look at manually backing up your store.


As with M1, you can only set your store to schedule 1 backup in total. 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 to avoid disappointment.


 

Manually backing up your Magento v2 store.

To manually backup your store access your M2 administration menu. On the left toolbar, 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 BACKUPDATABASE AND MEDIA BACKUP and DATABASE BACKUP. You must know the difference between these to 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 files to make changes to your store from anywhere outside 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 those 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 any external files that you have used to edit the store. Whatever changes you have made within the Magento framework are included in this backup, as well as all of your 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 have 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, click on it and a window will pop out. The options here are the same as M1, except for SYSTEM BACKUP. Unlike M1 your option here is to exclude rather than include your media folders. 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 if you have a lot of files.


For example, let's say I’m running 3 stores, 1 for the U.K., 1 for the U.S.A. and 1 for the French side of my business. There is a big French holiday coming up that I want to take advantage of by completely rearranging my store for one weekend. But what I don’t want to do is spend hours changing it and then hours putting it back to the way it was so I make the choice to backup the store.

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 backup. If you don’t back up a lot then it may not be a big issue for you. But if you have a lot going on with your site and multiple users backing up then not naming your files could become a nightmare for you and your team.



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 will see a PLEASE WAIT wheel. Now just let it do its 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, you have been warned!


And that’s it, you are now the proud owner of a backed-up M2 store! Congratulations. Thanks again for joining us today, we hope this blog has been helpful to you. Until next time, stay safe and have a great day.

You can also join all the fun on our various social media profiles
Facebook - facebook.com/husseycoding
Twitter - twitter.com/husseycoding
LinkedIn - linkedin.com/company/hussey-coding

Sign up to developer connection at www.developerconnection.co.uk
Facebook - facebook.com/DeveloperConnection
Twitter - twitter.com/devconnectionuk
LinkedIn - linkedin.com/company/developer-connection

 

3 April 2019

How to back up my Magento v1 store

Hi there everyone
and welcome to this instalment of the Hussey Coding blog.

With world backup day having just happened we thought it would be a fantastic opportunity to firstly remind you to backup your store and secondly to show you how (in case you aren’t sure).

This "how to" guide is specifically for version 1of Magento and though the process is very similar to version 2 it's not exactly the same so if you are looking to backup your version 2 store we conveniently have another blog just for you.  However we do recommend switching to Magento 2 at your earliest opportunity as, although some developers, like 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 on switching to v2 contact us at info@husseycoding.co.uk

It might be obvious as to why you would want to backup your store, let’s face it, you put a lot of work into making it perfect and losing all or even just a part of your store through accidental deletion or a crash would be at best mildly annoying, but do you actually back it up?

How many times have you thought “I need to backup my store but I also need to do these other 30 things … I’ll back it up tomorrow” or “First thing I’m gonna do when I get into work is backup my store” only to be distracted by a bunch of e-mails and before you know it baking up your store has become a distant memory, am I right?

Well, today is the PERFECT opportunity to backup your store

In this blog we will show you
 - How to enable your stores back up
 - How to back up your Magento v1 store and
 - How to schedule your backup.

Before we begin

Before we start it’s important for you to note 2 things about this method.
Firstly, 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.

Secondly, if you are using a version of Open Source Magento v1 later than version 1.9.3.0 then you will need to enable the backup option manually as it is disabled by default. We'll show you how to do that first but if you run an earlier version or have already enabled backup then just skip ahead.

Enabling backups
To enable backups you will need to log into your administration panel.
Along your tabs you will see SYSTEMS”, hover over it and drop down to “CONFIGURATION”.


On the new screen, looking at the LEFT side of the screen, scroll all the way down until you get to the heading “ADVANCED” and then click “ADVANCED


On the "DISABLE MODULES OUTPUT" page scroll down until you see "MAGE_BACKUP"



Change it from "DISABLE" to "ENABLE". Don't forget to save the configuration in the top right and then you are ready to back up your store.





Backing up your Magento v1 store

Log into your Magento administration menu. Along the tabs you will see “SYSTEMS”, hover over it to see the drop down menu
Click on “TOOLS” and then click “BACKUPS




This will open a new page where you can create your backup
You have 3 options here
"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.

Now that you know what you want to backup it’s time to take the plunge. Once you’ve clicked on the option you want a little pop up will … pop up, it’s the same for every option.



Basically it’s telling you that you won’t be able to do anything with your store from either the front or back end while it’s backing up.
Click “OK” and you will see some more options.



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 March 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 lovely little “PLEASE WAIT” circle appear, this is your system backing up and as we have said before, you can’t do anything while it’s backing up, so be mindful of when you backup using this method.



Scheduling your backup
You also have the option to schedule your backups to avoid being up at 3am just to back up your store at it’s quietest time. To do this open up your Magento Administration panel and go to “SYSTEMS” and drop down to “CONFIGURATION”.


On the new screen, looking at the LEFT side of the screen, scroll all the way down until you get to the heading “ADVANCED” and then click “SYSTEM



Another new screen will appear. Find the “SCHEDULED BACKUP SETTINGS on the RIGHT and click the arrow to expand the box. You’ll see the the option is on NO, so just change it to YES.



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.
It is important to note here that you can only schedule one backup at a time, so if you want to do weekly Database backups and monthly System backups you will need to change these setting each time.


Congratulations, you have just backed up your Magento store! If you are moving to Magento v2 any time soon (which we would recommend you do, for reasons appearing in an upcoming blog) then as I said earlier, this process is similar but not 100% the same so do look for our “How to back up your Magento v2 store” guide as well.

Thank you again for reading our blog and we hope it has been helpful to you. As always if you would like to get in touch with us here at Hussey Coding our contact details are below but until then, have a great day and stay safe.

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