lightshine, on Feb 18 2009, 08:09 AM, said:
[Contribution] Database Manager
#41 ONLINE
Posted 18 February 2009 - 07:35 AM
#42
Posted 18 February 2009 - 10:05 AM
Jan Zonjee, on Feb 18 2009, 03:35 PM, said:
#43
Posted 20 February 2009 - 06:19 AM
Jan Zonjee, on Feb 18 2009, 03:35 PM, said:
This is what i have tried so far but it does not work properly as shown below. When i click on the backup button, it only return a very small file size which should not be the case!
case 'backupfilesnow':
tep_set_time_limit(0);
$backup_file = 'files_' . date('YmdHis') . '.gz';
if (@file_exists(LOCAL_EXE_GZIP) && $safe_mode_setting == false) {
exec('tar -cjf ' . DIR_FS_BACKUP . $backup_file . ' ' . DIR_FS_DOCUMENT_ROOT . ' --exclude=\'*.gz\' ' . DIR_FS_BACKUP);
header('Content-type: application/x-octet-stream');
header('Content-disposition: attachment; filename=' . $backup_file);
readfile(DIR_FS_BACKUP . $backup_file);
// unlink(DIR_FS_BACKUP . $backup_folder_file);
unlink(DIR_FS_BACKUP . $backup_file);
} elseif (@function_exists('gzwrite')) {
$gzip_result = osc_gzip (DIR_FS_BACKUP, $_GET['file'], false);
if (!$gzip_result) {
$messageStack->add_session(ERROR_ON_GZIP, 'error');
tep_redirect(tep_href_link(FILENAME_BACKUP, $listing_link));
exit;
}
} else {
//$messageStack->add_session('compression tooling \'' . LOCAL_EXE_GZIP . '\' not found', 'error');
$messageStack->add_session(ERROR_NO_GZIP_AVAILABLE, 'error');
tep_redirect(tep_href_link(FILENAME_BACKUP, $listing_link));
exit;
}
break;
Edited by lightshine, 20 February 2009 - 06:21 AM.
#44
Posted 27 February 2009 - 08:22 AM
This is not a nitpick lol. I was just wondering because it looks cool.
[img]http://www.pagesworldbanknotes.com/zweb_images/screenshot_reload_backup.gif[/img]
#45
Posted 03 October 2009 - 01:36 PM
I have this contribution installed and am in the process of doing the updates to RC2a. I am up to the MySQL 5.0 Strict Mode compatibility updates and Update database backup and restoration.
Do you think it is worthwhile doing these?
The Coopco Underwear Shop
If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.
#46 ONLINE
Posted 03 October 2009 - 01:52 PM
Coopco, on Oct 3 2009, 03:36 PM, said:
Do you think it is worthwhile doing these?
#47 ONLINE
Posted 03 October 2009 - 01:56 PM
ifccnb, on Feb 27 2009, 10:22 AM, said:
This is not a nitpick lol. I was just wondering because it looks cool.
#48
Posted 03 October 2009 - 02:26 PM
Jan Zonjee, on Oct 3 2009, 11:52 PM, said:
The Coopco Underwear Shop
If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.
#49
Posted 09 October 2009 - 03:49 PM
First of all thanks for your contribution.
I have a question, i am following the "How to secure your site" thread: http://forums.oscommerce.com/topic/313323-how-to-secure-your-site/
It states here and i quote "I recommend you use AutoBackup Database in Admin AND Database backup manager also Backup of all store files in zip format. "
Now i happen to have installed Auto Backup Install V3.0 and in this contribution i had to edit "admin/includes/languages/english/backup.php"
5. In /admin/includes/languages/english/backup.php
find:
define('ERROR_BACKUP_DIRECTORY_DOES_NOT_EXIST', 'Error: Backup directory does not exist. Please set this in configure.php.');
replace with:
define('ERROR_BACKUP_DIRECTORY_DOES_NOT_EXIST','Error, Backup Directory Does Not Exist, please create it or run "auto_backup_setup.php"');
Now in your contribution i have to upload a new admin/includes/languages/english/backup.php file, but this does not have the change in it anymore
for the Auto Backup Install V3.0 to work.
Is it safe just to change this line again after i uploaded your admin/includes/languages/english/backup.php file?
Or can this cause mailfunctioning?
Thanks
Edited by Milierkovic, 09 October 2009 - 03:50 PM.
#50
Posted 09 October 2009 - 03:56 PM
Milierkovic, on 09 October 2009 - 03:49 PM, said:
Its just a language file, you are just defining what it says if there is a error, it could say anything u like.
Changing it will not effect the operation of either app.
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
#51 ONLINE
Posted 09 October 2009 - 03:56 PM
Milierkovic, on 09 October 2009 - 03:49 PM, said:
for the Auto Backup Install V3.0 to work.
Is it safe just to change this line again after i uploaded your admin/includes/languages/english/backup.php file?
Or can this cause mailfunctioning?
#52
Posted 09 October 2009 - 04:01 PM
I asked this question just to be sure, but now i see it cant do any damage, it works good, i tested it.
better safe then sorry
#53
Posted 18 February 2011 - 09:31 PM
That's really really a great addon for osCommerce. Thanks for your time, idea and your perfect effort.
I have some questions:
-Do you think to update this addon for osCommerce v2.3.x (ereg_replace, template_top.php , template_bottom.php etc...)?
-Do you think to develop the script as AutoBackup Script with some available options like:
***AutoBackup DB ( 1-24 hourly, daily, weekly, monthly)
***Delete backup archives [older than specified days]
***Restore base from last backup archive [matching specified regexp]
***Create back up archives [from specified table(s)]\n\n". [table1 table2...]\n".
-Including BigDump and XT-Dump(I can't find) updates.
I will need to use this addon with some extra options. I think to start to develop but, I can't find XT-Dump on the Web.
Thanks.
#54
Posted 08 March 2011 - 07:33 PM
I've tested this class: http://www.phpclasses.org/package/4017-PHP-Backup-large-MySQL-databases-into-multiple-files.html
That's not a good solution. That has a problem with null and empty inputs ''. But like "idea" really it's very good.
I didn't find the new version or documentation for XT-Dump. Because there is no site of the creator : http://dreaxteam.free.fr/ now.
I also found a bug (and maybe in osC v2.3.1.- I didn't check) in your addon with my mysql partitions (partition option of mysql).
Thanks.
Edited by faaliyet, 08 March 2011 - 07:41 PM.
#55 ONLINE
Posted 08 March 2011 - 10:33 PM
faaliyet, on 08 March 2011 - 07:33 PM, said:
That's not a good solution. That has a problem with null and empty inputs ''. But like "idea" really it's very good.
Quote
Quote
#56 ONLINE
Posted 08 March 2011 - 10:38 PM
faaliyet, on 18 February 2011 - 09:31 PM, said:
-Do you think to update this addon for osCommerce v2.3.x (ereg_replace, template_top.php , template_bottom.php etc...)?
Quote
***AutoBackup DB ( 1-24 hourly, daily, weekly, monthly)
Quote
#57 ONLINE
Posted 09 March 2011 - 12:34 AM
Regards
Jim
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#58
Posted 09 March 2011 - 12:53 PM
kymation, on 09 March 2011 - 12:34 AM, said:
Regards
Jim
Thanks Jim !
I just saw the screenshots of mysqldumper and that looks perfect. I'm gonna check this out.
That's really a great job ! Awesome !
Thanks in advance for your message !!!
#59
Posted 16 March 2012 - 12:17 AM
Modified layout for 2.3.x,
Moved & modified download function,
Added download(display) plus deletion of log files if found in folder,
Added ability to email backup files,
Replaced any depreciated functions.
A few other minor display modifications.
This version is also compatible with osC 2.2 and lower
Log files are produced by Auto Backup Database ( http://addons.oscommerce.com/info/8374 )
which will create automatic backups periodically that are compatible with Database Backup Manager.
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
#60
Posted 16 March 2012 - 09:53 AM
The file size that I tried to email is 9.28MB and I'm receiving the following error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 13150833 bytes) in /home/xxx/zzz/admin/includes/classes/class.smtp.php on line 368









