A simple automatic backup solution for Magento?

I recently started developing a site using Magento.

All my files and databases are located on a remote Linux hosting server.

What I would like to implement is a kind of system in which all my files and database are backed up once a day "just in case". I would also like to be able to use the same system to manually update everything before making any major changes.

I learned using a solution like Git or SVN in combination with MySQL CRON dumps; but they seem redundant for my needs.

Any ideas?

Thanks in advance for taking the time to read this and respond.

+3
source share
5 answers

This is probably not as much as you think. SVN (or any other version control system) will allow you to keep perfect records of how your system was viewed the previous time, so when you exploded your site using new code (which often happens when developing Magento), you can quickly restore it any previous condition.

You will especially find this useful when it is not obvious that everything exploded until a few days after that. Hope this helps.

Thanks Joe

+2
source

This article explains how to move Magento to another server.

http://www.magentocommerce.com/wiki/groups/227/moving_magento_to_another_server

1 2 sql magento cron.

+3

Magento DB - Magento Autobackup

+1

magento: http://magento-backups.com/ . - $130/. - 10 , subversion. , .

0

, . git, tar , scp ftp .

script, URL- "". , !

Magento:

:

magento. , . - , ASAP , .

script , gziped , . . , tar magento.

!/bin/sh
m_user='databaseusername'
m_pass='databasepasswd'
db_name='databasename'
od='/home/user/backups/website/' #output directory of the backups
id='/var/www/html/' #the location of the site
name=$od$db_name
name+="_"
mysqldump --opt -u $m_user -p$m_pass $db_name | gzip -c | cat > $name$(date +%m-%d).sql.gz; tar -zcvf $name$(date +%m-%d).tar.gz $id
0
source

Source: https://habr.com/ru/post/1728093/


All Articles