This addon is provided with community support only - you welcome to fork it and add or fix what you want!
Use expressionengine.stackexchange.com for support
MX Easy BackUp simplifies the task of backing up your ExpressionEngine site. You can backup your DB, a system folder, custom files / directories and store it locally, remotely to Amazon S3 / SFTP / FTP / Email. It supports compression as well as methods of automatically scheduled backups. With MX Easy BackUp, it takes less than 1 min to backup your files before the next EE update.
- ExpressionEngine 2
- PHP 5 >= 5.2.1 (safe_mode = off)
- S3 - cURL PHP extension
- Download the latest version of MX Easy BackUp and extract the .zip to your desktop
- Copy system/expressionengine/third_party/mx_easy_backup to your system/expressionengine/third_party/mx_easy_backup
- If you plan to use Cron : If you are using a Unix server (or Unix variant, like Linux, OS X, FreeBSD, etc.) you must set cron.mx_easy_backup.php CHMOD to 755
- Log into your control panel
- Browse to Addons > Modules
- Enable the module
This is the directory path you would like to backup
Security Notice Be sure that your local backup folder is secure. I recommend you should place the backup folder above the public web "root" folder.
PHP - performing backup/restore with the PHP method.
SYSTEM - performing backup by means of mysqldump zip/gzip system commands and restore with mysql command. At this moment, this method is available only for the *nix system, so if you have the Windows server, this option will be hidden.
only fo SYSTEM method
####AWS Access Key This is actually a username. It's represented by an alphanumeric text string that uniquely identifies a user who owns an account. Two different accounts cannot have the same AWS Access Key.
####AWS Secret Key
This key plays a role of a password. It's regarded as secret because it is assumed to be known only by an owner. So when you type it in a given box, it's displayed as asterisk or dots. The Password and the Access Key constitute a secure information set that confirms the user's identity.
While performing backup by sending to S3, you have to provide these two keys.
Amazon S3 bucket for backup files.
####Create a new bucke
You can create a new S3 bucket right from MX Easy BackUp.
Although Amazon will allow you to use capital letters and periods in the namespace, it is not recommended to do so due to the naming restrictions that are enforced by DNS. In order to conform with the DNS requirements, we recommend you follow these additional guidelines while creating buckets:
- Bucket names should not contain upper case letters
- Bucket names should not contain underscores (_)
- Bucket names should not end with a dash
- Bucket names should be between 3 and 63 characters long
- Bucket names cannot contain dashes next to periods (e.g., "my- bucket.com" and "my.-bucket" are invalid)
Your host.
Your host port.
####Username Your ftp username.
####Password Your ftp password.
####Directory for backup files storage Directory on the FTP server where backup files must be stored.
####Use passive mode Some FTP servers require the connection to be established in a passive mode (i.e. your computer establishes the connection so the flow of data is set up and initiated by you).
Your host.
Your host port.
####Username Your username.
####Password Your password.
####Directory for backup files storage Directory on the server where backup files must be stored.
Email address(es) you would like to get your backup.
Here is a template for your email. You can use the following tags in it:
- {size} - a backup file size
- {filename} - a backup file name
- {plan_id} - a backup plan id
- {data} - a backup date
- {time} - a backup time
- {plan_name} - a backup plan name
You can setup categories of notifications you would like to receive information about every time according to the backup results.
Email address(es) you would like to get your backup notifications to.
Here is a template for your email. You can use the following tags in it:
- {size} - a backup file size
- {filename} - a backup file name
- {plan_id} - a backup plan id
- {data} - a backup date
- {time} - a backup time
- {plan_name} - a backup plan name
A name for your backup plan
A path to the local directory where the backup archive will be stored.
MX Easy BackUp can automatically send files to a remote server (FTP, SFTP, Amazon S3) or to an e-mail address. In this case, an original file in a local folder will be deleted. The list is based on your settings. Those methods without any settings will not be available for choosing.
Here you should enter paths to optional files/directories you want to backup.
If you don't need to backup a full DB, you can choose separate tables.
Full or Differential
###You can used MX Easy Backup with [Cron plugin][]
# example
{exp:cron minute="*" hour="1" day="*" month="*" module="mx_easy_backup:start_backup" task_id="2"}{/exp:cron}
[Cron plugin] :http://expressionengine.com/index.php?affiliate=eecms&page=/downloads/details/expressionengine_cron/
###Cron with wget or third-party services which can ping you page. You can find URL in your MX Easy Backup task settings page.
#wget cron example
0 13 * * * wget http://yourdomain.com/index.php?ACT=XX&task_id=1
A: Currently, the MX Easy Backup does not offer an automatic restore option. There are quite a number of reasons for it. Mainly due to the fact that it would be a "hot" restore; besides, due to a great amount of different possible web server configurations such an action can result into many unpleasant issues, and just a single failure would lead to a completely unusable ExpressionEngine installation. Therefore, I recommend that the database restore should be implemented manually.
A: You need enter the Settings page and set up your remote servers options.
A: Start by typing at a command line: "whereis php". Do this as the user that the cron job will be run under. This will show you the path to your executable.
A: [Gmail Help][] :
-
- As a security measure to prevent potential viruses, Gmail doesn't allow you to send or receive executable files (such as files ending in .exe) that could contain damaging executable code. In addition, Gmail does not allow you to send or receive files that are corrupted. Gmail won't accept these types of files even if they are sent in a zipped (.zip, .tar, .tgz, .taz, .z, .gz) format. If this type of message is sent to your Gmail address, it is bounced back to the sender automatically.
-
- You can send and receive messages up to 25 megabytes (MB) total (including attachments). Any message that exceeds this limit will not be delivered to your inbox and will be returned to the sender.
[Gmail Help] : http://mail.google.com/support/bin/answer.py?answer=6590