-
- 177 Posts
The attached zip file contains a replacement for v1.5 bkup_class.php. This has the zip compression turned off. I was able to duplicate the failure conditions on my Linux platform where the zip process stops at 95MB on a large website. Keep in mind that the resulting zip file will have no compression and be slightly larger than your website.
Thanks in advance for those who can test. Please provide feedback on your results. If this works then I’ll include an option in the config to enable/disable compression in v1.6.
-
- 8 Posts
The module is working perfectly. I am not sure which folders to backup.
George.
-
- 8 Posts
I just noticed one issue with my installation. mysql dump is made to tmp folder but is ultimately removed. I don’t find it in the zip file in archive folder. I found this out by commenting out line 473 which deletes the dump file.
All the files are backed up and mysql dump is also done but should it be added to the zip file? Thanks.
// Delete SQL files
foreach (glob (’tmp/*’) as $file_name) {
echo ’Deleted’ . $file_name . ’ size ’ . filesize ($file_name) . ’ . . . ’;
//unlink ($file_name);
} //
George.
-
- 177 Posts
v1.6 just released!
* Improved zip process adding yes/no in bkup_config.php to compress files in archive zip
* Automatically skips previous archive zip files
* Updated verify screen to display compress setting
Upgrade and new installation instructions in README.txt.
Enjoy!
Hey chuck... I’m receiving this error when backing up.
Start PclZip archive of all files to home/sites/mysite/public_html/backup/archiveERR_bkup_20080623_023208.zip . . . Error: PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open archive ’home/sites/mysite/public_html/backup/archiveERR_bkup_20080623_023208.zip’ in wb mode
What could be the problem?
Cheers, Ross
EDIT : I forgot the first slash before home "/home"
EDIT AGAIN : Unfortunately it’s still not backing up my whole site. I can only assume it’s to do with how big my site is (370mb). I’m going to contact the host again and ask them what the deal is.
I just tried it on a smaller site, about 70mb. The backup complete message isn’t showing even after 10minutes but does appear to of worked.
Backup in process...
Start MySQL backup of mysite to backup/tmp/mysite.sql . . . Completed MySQL backup. - Size: 8272251
Start FileList . . . File count: 12284 . . Completed FileList.
Start PclZip archive of all files to /home/sites/mysite/public_html/backup/archive/mysite_bkup_20080623_025358.zip . . .
I set the MB to 400 for both, 600 seconds just to give it time and set compression to no for both. Also in my php.ini file i set the memory to 50M.