Try the Demo

Magento Forum

   
How to backup a Magento installation
 
gdeyui
Jr. Member
 
Total Posts:  7
Joined:  2009-12-02
 

How to backup a Magento installation
What is the best practice method of backing up Magento database files and page files?
The Magento Backup utility only creates an .sql file so do we need to backup
other directories of xml, css, jscript, php files manually?

 
Magento Community Magento Community
Magento Community
Magento Community
 
NeilA
Moderator
 
Avatar
Total Posts:  1374
Joined:  2007-09-18
Blue Mountains, Oz
 

Assuming you have a stable installation, you can take a single backup of the file system (don’t bother with the var/cache contents), and be done with that.
Backing up the db regularly is obviously vital.

Personally, I do an rysnc backup of the whole system once a day to a remote server - but I play with the file system quite a bit.

Regards

 Signature 

Neil Atwood
Ministry Grounds Coffee
Micro-roaster and premium green coffee for home roasters.
Twitter: twitter.com/ministrygrounds
Facebook: Facebook.com/ministrygroundscoffee

 
Magento Community Magento Community
Magento Community
Magento Community
 
Joshua Barrie
Member
 
Total Posts:  52
Joined:  2009-01-02
 

I usually have a copy of the template/skin on my home/office server with regular back-ups of the products (depending on how often items are edited/added).
Unless you muck around with the file system alot, really you dont need to back it up often. Just ALWAYS backup your sql, Neil sets a good example of “DAILY” to a remote server. This can be even your home/office computer, just make sure your backing up that file.

But this all depends on who your hosted with also. Some hosts use back-up software which is really handy.
Myself, I have backups of everyday of my clients WHOLE account kept for 30days at a time.

This includes SQL, FILES and EMAIL. So if anything does go really wrong, we can always turn back time smile

 Signature 

Joshua Barrie

Magento stores folio (completed);
Discount Trophies
Priceless Perfume

 
Magento Community Magento Community
Magento Community
Magento Community
 
Armstrong007
Jr. Member
 
Total Posts:  1
Joined:  2010-02-11
 

Spam links removed

 
Magento Community Magento Community
Magento Community
Magento Community
 
ggchamp
Sr. Member
 
Total Posts:  153
Joined:  2009-04-30
 

If you have ssh access just run:

tar -zcvf magento_backup_todaysdate.tar.gz magento/

Replace magento/ with whichever folder ur magento files reside in, this will make a backup file of all your files.

Also i usually do a backup of the database personally i just do it via phpMyAdmin export.

 Signature 

My Magento Promotional Items Website: Koozies and Wholesale Promotional Products

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagentoBackups
Jr. Member
 
Total Posts:  16
Joined:  2010-02-02
Los Angeles
 

Hey Everyone,
We’ve just released a new module for backing up Magento that incorporates Subversion for version control. Hopefully it will solve all of these problems for you as it did for us.  You can read more about it on Magento Connect or at the website: http://www.magento-backups.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
gershon
Jr. Member
 
Total Posts:  8
Joined:  2008-08-17
 
MagentoBackups - 31 May 2010 08:42 AM

Hey Everyone,
We’ve just released a new module for backing up Magento that incorporates Subversion for version control. Hopefully it will solve all of these problems for you as it did for us.  You can read more about it on Magento Connect or at the website: http://www.magento-backups.com

Is this product a local download or something i would install on my website?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Wallie85
Jr. Member
 
Total Posts:  27
Joined:  2010-10-24
 
ggchamp - 23 April 2010 08:01 AM

If you have ssh access just run:

tar -zcvf magento_backup_todaysdate.tar.gz magento/


Replace magento/ with whichever folder ur magento files reside in, this will make a backup file of all your files.


Also i usually do a backup of the database personally i just do it via phpMyAdmin export.

Where do you do this command in the root of your server or in the directory from you Magento store where app, skin etc. are?

 
Magento Community Magento Community
Magento Community
Magento Community
 
ptjedi
Sr. Member
 
Avatar
Total Posts:  250
Joined:  2008-03-12
Porto, Portugal
 
Wallie85 - 22 January 2011 04:20 AM

ggchamp - 23 April 2010 08:01 AM
If you have ssh access just run:

tar -zcvf magento_backup_todaysdate.tar.gz magento/


Replace magento/ with whichever folder ur magento files reside in, this will make a backup file of all your files.


Also i usually do a backup of the database personally i just do it via phpMyAdmin export.

Where do you do this command in the root of your server or in the directory from you Magento store where app, skin etc. are?

Just put a slash, like this:

tar -zcvf magento_backup_todaysdate.tar.gz /

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagePlace
Member
 
Avatar
Total Posts:  31
Joined:  2010-11-10
Belarus
 

Hello

We’ve released Extension for Magento backup:
http://www.magentocommerce.com/magento-connect/mageplace-cloud-backup-4781.html

it can back up DB and Magento files, send archives to cloud storages and run scheduled backups automatically.

Hope you’ll like the extension

 Signature 

Professional Magento Extensions and custom development.
Don’t forget to Backup your Magento

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_deepblue
Jr. Member
 
Total Posts:  5
Joined:  2012-10-11
 

NeilA...how do you set up an automatic SQL back up? I want to make aback up before installing a new extension...can you help please?

Cheers!

 Signature 

Deep Blue Sports | BadBoy UK Licensee | MMA Clothing & Equipment Retailer

 
Magento Community Magento Community
Magento Community
Magento Community
 
rcveen
Jr. Member
 
Total Posts:  1
Joined:  2009-12-16
 

If you use mysql use mysqldump

 
Magento Community Magento Community
Magento Community
Magento Community
 
Oriman
Jr. Member
 
Total Posts:  1
Joined:  2012-12-25
 

Hello,

I am a real Magento Newbie too.

I am used to work on other CMS but a friend came to me with an old bacjup of a magento website asking to put it back on the web.

I am actually trying to make it work locally with mamp.
I installed the lastest Magento, and try to find how to send the content and the DDB. My problem begin here.
I have :
- two .rar compressed files with some file backup in it.  ( I guess it is two time the same content at two time point ? )
- a mysql******.sql file.

I tried to upload it by ftp on folders.
I tried to upload the ddb inside he new one with phpmyadmin
I tried to use some backup upload options…

I m quite lost,

Could you help me please ? grin

thank you all guys.

 
Magento Community Magento Community
Magento Community
Magento Community
 
RickNel
Jr. Member
 
Total Posts:  2
Joined:  2013-03-19
Adelaide, Australia
 

I think that the best backup solution for Magento driven website, like any other, is backup from Cpanel. Just one click, backup whole account, and you get your hosting resources mirrored in only one .tar file, which you can download. Everything is there, db-s, files, mails, configs..
Cheers.

 Signature 

Adelaide Classifieds Australia Classifieds Sydney Classifieds Perth Classifieds Brisbane Classifieds Melbourne Classifieds New Zealand Classifieds Auckland Ads

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadi N
Jr. Member
 
Total Posts:  10
Joined:  2010-05-17
 
MagePlace - 17 May 2012 02:34 AM

Hello

We’ve released Extension for Magento backup:
http://www.magentocommerce.com/magento-connect/mageplace-cloud-backup-4781.html

it can back up DB and Magento files, send archives to cloud storages and run scheduled backups automatically.

Hope you’ll like the extension

Thank you. This is the best solution to backup for both database and files. Backup manually will gross your time (but once I did successfully) Unfortunately, the extension isn’t free, or, $99 for me is way too high. But I believe it’s worthed.

 Signature 

Rich Amor Skincare

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top