#==============================================================================+ # # EasyBackup v1.6 - an e107 plugin by nlstart # # Plugin Support Website: [link=external=http://e107.webstartinternet.com/]e107.webstartinternet.com[/link] # # A plugin template for the e107 Website System; visit [link=external=http://e107.org/]e107.org[/link] # For more plugins visit: [link=external=http://plugins.e107.org/]plugins.e107.org[/link] or [link=external=http://www.e107coders.org/]e107coders.org[/link] # #==============================================================================+ Purpose of the EasyBackup plugin ===================================== GOAL: Automatically e-mail the daily backup of a e107 MySQL database. NOTE: The backup functionality does not run on a cron process, but is triggered by the first visitor of an admin defined userclass on a certain day. You need to have at least one visitor a day of the defined userclass to guarantee the daily process of your backup. NOTE: The zip functionality will become visible and available when PHP zip module is installed and enabled. NOTE: The plugin is not capable of restoring the backups made; you can restore a back-up manually with a MySQL database tool like e.g. PhpMyAdmin. Prerequisites: ============== E107 core v0.7.7 (or newer) installed. Installation: ============= a. Upload the EasyBackup plugin files into your 'e107_plugins' folder. Although 'Upload plugin' from the Admin section might work, uploading your plugin files by using an FTP client program is recommended. b. When working on Linux or Unix based server set the CHMOD settings of directories to 755 and set CHMOD of all .php files to 644. c. When working on Linux or Unix based server set the CHMOD setting of subdirectory bu to 777 (write rights for backup). When working on a Windows (Win32) based server change the properties of the subdirectory bu and uncheck the 'read only' attribute. d. Login as an administrator into e107, go to Plugin Manager, install the EasyBackup plugin. e. Go to Admin area > Plugins > EasyBackup > EasyBackup Settings and adjust the settings to your preferences. Updates: ======== There have been no database updates since v1.0! Upgrading from version 1.3 and higher: * go to Admin Area > Plugin Manager > Find EasyBackup and click on button 'upgrade'. Upgrading from 1.2: * The plugin will try to delete the easybackup_menu from the easybackup folder; if it fails you have to do it manually * In Admin area > Menus> remove the easybackup from any active area Alternatively you can completely delete the existing (1.2) easybackup folder from your plugins folder and install the plugin 1.6 as new. Important background information ================================ Read the Wiki: http://wiki.e107.org/index.php?title=EasyBackup Troubleshooting =============== The EasyBackup plugin is capable of zipping the .sql back-up file. This functionality will only become visible if the plugin detects that the PHP extension 'zip' is loaded. You can go to Admin Area > PHP info and see if the 'zip' extension is enabled on your host server. For more information read the Wiki: http://wiki.e107.org/index.php?title=EasyBackup Changelog: ========== Version 1.6 * easybackup.php: somehow didn't pack the intended code for easybackup to solve parse errors Version 1.5 * e_latest.php: new module to show latest backup date in admin latest menu * English.php: adjusted EASYBACKUP_CONF_06 description * English.php: added EASYBACKUP_LATEST_01 description for e_latest.php * easybackup.php: fix to avoid zip parse error on some old PHP 4 hosts (thanks to KVN/steved/Kroll for their input/test) * easybackup.php: more efficient coding for updating tables in .sql file saves space; with same database: old file size: 344 kb, new: 249 kb. * easybackup.php: check if backup has been created that day has been improved (line 99) * e_module.php: sometimes backup procedure was triggered but didn't complete the backup; EasyBackup will retry until a backup has been made succesfully that day. Version 1.4 * easybackup.php: fixed bug to remove previous check file * easybackup.php: introduced function to clean up all previous check files * easybackup.php: made the hard coded donation phrase language independent * English.php: added donation phrase * plugin.php: more efficient coding for removing the redundant easyshop_menu.php Version 1.3: * easybackup.php: definitely fixed correct numbering of error codes (duplicate error code 6) * changed easybackup_menu.php into e_module.php: selecting a menu is not necessary anymore (old version easybackup_menu.php has become redundant) * plugin.php: will try to delete redundant easyshop_menu.php Version 1.2: * easybackup_menu.php: introduced trigger date to properly previous checkfile in easybackup.php * admin_config.php: show new variable trigger date and give admin possibility to overwrite it * admin_config.php: introduced new variable 'Send e-mail' (default 'On') to be able to override the email process * admin_config.php: introduced new variable 'Delete previous backup' to automatically remove previous backup; especially handy when 'Delete backup' equals 'No'. With this setting manual deletion is not necessary; only the last backup will remain. * admin_config.php: introduced new variable 'Create ZIP file mode' (default 'Off') to be able to zip the file * easybackup.php: removed some die() moments to prevent unexpected exiting of program * easybackup.php: fixed correct numbering of error codes * easybackup.php: introduced zip procedure if setting is on and if detection of PHP zip module is true * easybackup.php: will e-mail the .zip file if the backup if it is available, otherwise the .sql file Version 1.1: * removed redundant admin_upload.php * fixed irritating typo of EasyShop instead of EasyBackup in settings Version 1.0: * Sub-goals for release 1.0: - make plugin fully e107 compliant - make plugin language independent - initial version * New/Added Features: - * Altered Features: - * Bugs Fixed: - * Minor Changes: - * Wishlist: - * Known bugs: - Future roadmap ============== * actually monitor the buglist on [link=external=http://e107.webstartinternet.com]e107.webstartinternet.com[/link] * monitor what features end users want License ======= EasyBackup is distributed as free open source code released under the terms and conditions of the [link=external=http://gnu.org/]GNU General Public License[/link].