Possible bug report - autobackup tool

Hello.

In last few months I had problems with auto backup plugin. It just creates new backups without any order, I tried to change backup interval from one week to 15 days, but nothing worked.

Actually, everything looked fine, but, instead of one backup file every 7 or 15 days I got hundreds of backup files, sometimes every minute, or every few seconds new backup. I needed to empty GB's of backup files from "backup" folder.

So, finally I turned off auto backup plugin. My thought is this, when auto backup plugin is on and also cache_html is on when auto backup needs to run it adds this to html body of page:

<script type="text/javascript">
// <!-- <![CDATA[
$.ajax({
type: 'POST',
cache: false,
data: 'link=/home/pathtopublicfolder/zp-core/utilities/backup_restore.php&backup=1&autobackup=1&compress=0&XSRFTag=backup&auth=da160b1824cb417fe95037bf5912f4a5&offsetPath=3',
url: '/zp-core/cron_runner.php'
});
// ]]> -->
</script>

And if cache_html plugin cache that page at that time it will serve page with that script to every visitor, so with every new load of page backup is created.

Maybe I am wrong, but I have no other explanation.

I hope this will help.

Best regards.

---------------------------

Zenphoto version 1.4.5.9 [12ad1f92fa] (Official build)
Theme: garland

Comments

  • acrylian Administrator, Developer
    Best you file a ticket on the issue ticket and please re-try with the 1.4.6 RC1 as well. If it will be fixed it will be there. 1.4.5.x does not get any updates anymore.

    Update: I just tried with the RC1 and could not reproduce it. Are you sure you have set an interval and a number of backups to keep on the auto backup options?
  • Your analysis is correct. The page should not be cached if the ajax code is present. That will be fixed shortly.

    There is a side-effect of the fix, though. If there are no un-cached page requests the backup will not get run. Probably not an issue, though, since that means the site has been static.
Sign In or Register to comment.