Difference between revisions of "How to Back Up"

From Phoenix Cart User Guide
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="btn-grey"><historylink type="back">&#129032; Back</historylink></span>
+
<div class="btn btn-grey btn-back">{{#fas:arrow-left}} Back</div> <div class="btn btn-grey btn-download">{{#fas:download}} Download & Install</div>
<span class="btn-grey" style="color:#0088dd;">'''[[DOWNLOAD & INSTALL|&#x1F809; DOWNLOAD & INSTALL]]'''</span>
 
 
<hr>
 
<hr>
 
+
__FORCETOC__
 
+
__TOC__
 
Backing up your website and database is not an essential step to setting up your shop but it is important to make a frequent and regular backup of both your website and database, certainly every time before you make any changes, so now is a good time to start the habit.
 
Backing up your website and database is not an essential step to setting up your shop but it is important to make a frequent and regular backup of both your website and database, certainly every time before you make any changes, so now is a good time to start the habit.
  
 +
==='''Back up the Website.'''===
  
<hr>
+
Create and save a folder/directory on your computer - name it, for example, '''yourSite'''.
 
 
 
 
<BIG>'''Back up the Website.'''</BIG>
 
 
 
Create and save a folder/directory on your computer - name it '''yoursiteTodaysDate''' - maybe it's obvious but use the name of your website and the date you are making the backup :) - so e.g. '''example20200831'''
 
 
 
Select all files on the server and transfer/download to '''yoursiteTodaysDate''' folder/directory.
 
 
 
This is simply just the reverse of what you did to install Phoenix.
 
 
 
NOTE: Create a new '''yoursiteTodaysDate''' folder/directory every backup time to keep regular snapshots of the website - the website can then be restored to any snapshot.
 
  
 +
Open it and create and save another folder/directory in it - name it, for example,  '''yourSiteTodaysDate''' - maybe it's obvious but use the name of your website and the date you are making the backup :) - so e.g. '''yourSite-04-11-2023'''
  
<hr>
+
Select all files on the server and transfer/download to '''yourSiteTodaysDate''' folder/directory.
  
 +
This is simply just the reverse of what you did to install Phoenix Cart.
  
<BIG>'''Back up the Database.'''</BIG>
+
NOTE: Create a new '''yourSiteTodaysDate''' folder/directory every time a backup is made to keep regular snapshots of the website - the website can then be restored to any snapshot.
  
 +
==='''Back up the Database.'''===
 
*From admin go to [[File:adminnavbartools.png|link=]] '''Tools &rarr; Database Backup''' to open the Database Backup Manager page.
 
*From admin go to [[File:adminnavbartools.png|link=]] '''Tools &rarr; Database Backup''' to open the Database Backup Manager page.
 
*Click <span class="btn-grey">Backup</span> to see this:  
 
*Click <span class="btn-grey">Backup</span> to see this:  
Line 32: Line 24:
 
</div>
 
</div>
 
*'''No Compression (Pure SQL)''' is already selected - this can be left as is.
 
*'''No Compression (Pure SQL)''' is already selected - this can be left as is.
*'''Download only (do not store server side)''' checkbox is unticked - leave unticked to save on the server - tick this box to save to the downloads folder on your computer - it is advisable to do both.
+
*'''Download only (do not store server side)''' checkbox is unticked - leave unticked to save on the server - tick this box to save to the downloads folder on your computer - it is advisable to do both so a backup is stored on your local computer. It might also be advisable to move the download to your '''yourSite''' folder/directory so it can easily be found again!
 
*Click <span class="btn-yellow">Backup</span> - the database SQL file will then show on the page when complete if it is saved on the server - it will be saved in the file path shown on the page.
 
*Click <span class="btn-yellow">Backup</span> - the database SQL file will then show on the page when complete if it is saved on the server - it will be saved in the file path shown on the page.
  
 
If the database has been stored on the server, it can be restored from admin by going to '''Tools &rarr; Database Backup''', click the file and then click <span class="btn-grey">Restore</span>.
 
If the database has been stored on the server, it can be restored from admin by going to '''Tools &rarr; Database Backup''', click the file and then click <span class="btn-grey">Restore</span>.
  
If the database has been downloaded and saved on your computer, it must be restored by accessing your database on your host server account and importing the file - see <big>'''[[phpMyAdmin]]'''</big>
+
If the database has been downloaded and saved on your local computer, it must be restored by accessing your database on your server host account and importing the file. Many server hosts use '''phpMyAdmin''' as database software. Different software might be used on your server but they all work in a similar way - see <big>'''[[phpMyAdmin]]'''</big>
 +
 
 +
Some users might prefer to backup the database directly from the database software.
 +
 
 +
==='''Keeping Records.'''===
 +
Making backups before any changes are made to your site also makes it advisable to keep records of any changes made in a '''Change Log''' file.
 +
 
 +
Keep it saved in your '''yourSite''' folder/directory.
 +
 
 +
This could simply be a text document though a spreadsheet document can be easier to read.
  
  
Line 44: Line 45:
 
<span class="btn-grey">[[How to Update|Next Step &#129034;]]</span>
 
<span class="btn-grey">[[How to Update|Next Step &#129034;]]</span>
 
<hr>
 
<hr>
 +
{{Forum}}
 +
{{Pro}}
 
{{Contribute}}
 
{{Contribute}}

Latest revision as of 10:37, 1 September 2024

Back
Download & Install

Backing up your website and database is not an essential step to setting up your shop but it is important to make a frequent and regular backup of both your website and database, certainly every time before you make any changes, so now is a good time to start the habit.

Back up the Website.

Create and save a folder/directory on your computer - name it, for example, yourSite.

Open it and create and save another folder/directory in it - name it, for example, yourSiteTodaysDate - maybe it's obvious but use the name of your website and the date you are making the backup :) - so e.g. yourSite-04-11-2023

Select all files on the server and transfer/download to yourSiteTodaysDate folder/directory.

This is simply just the reverse of what you did to install Phoenix Cart.

NOTE: Create a new yourSiteTodaysDate folder/directory every time a backup is made to keep regular snapshots of the website - the website can then be restored to any snapshot.

Back up the Database.

  • From admin go to Adminnavbartools.png Tools → Database Backup to open the Database Backup Manager page.
  • Click Backup to see this:

Toolsbackupmanager.png

  • No Compression (Pure SQL) is already selected - this can be left as is.
  • Download only (do not store server side) checkbox is unticked - leave unticked to save on the server - tick this box to save to the downloads folder on your computer - it is advisable to do both so a backup is stored on your local computer. It might also be advisable to move the download to your yourSite folder/directory so it can easily be found again!
  • Click Backup - the database SQL file will then show on the page when complete if it is saved on the server - it will be saved in the file path shown on the page.

If the database has been stored on the server, it can be restored from admin by going to Tools → Database Backup, click the file and then click Restore.

If the database has been downloaded and saved on your local computer, it must be restored by accessing your database on your server host account and importing the file. Many server hosts use phpMyAdmin as database software. Different software might be used on your server but they all work in a similar way - see phpMyAdmin

Some users might prefer to backup the database directly from the database software.

Keeping Records.

Making backups before any changes are made to your site also makes it advisable to keep records of any changes made in a Change Log file.

Keep it saved in your yourSite folder/directory.

This could simply be a text document though a spreadsheet document can be easier to read.



🠈 Previous Step Next Step 🠊


Many Addons and Extensions available in the CE Phoenix Cart Addons Library

If help is needed, support is available in the CE Phoenix Cart Support Forum

Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.

Code references are licensed under a Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales License.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org