Author Topic: Is there a maximum backup size Java SMF Backup can handle?  (Read 12738 times)

Celestia

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Is there a maximum backup size Java SMF Backup can handle?
« on: April 15, 2009, 12:51:49 pm »
Hi,

I've been successfully using Java SMF Backup for a couple of years now to backup three forums (all of the forums are currently running on SMF 1.1.8).

The scheduled backups have been running successfully with no hitches, until about a month ago (I only realised there was a problem this morning though when I decided to clear up old backups from my hard drive).

The reason I'm wondering if there's a maximum backup size Java SMF Backup will handle though is that two of the forums have still been backing up fine - they're both small forums and the compressed backup files are less than 2MB for both of them (one's less than 1MB). With my main forum though, which is much larger and busier, the compressed backup file's over 13MB. When the backup runs (I have it set to backup when Java SMF Backup starts and at 8pm each evening) the backup appears to run okay, but the resulting file appears to be empty, with a filesize of 0kb. The last successful backup of the forum that doesn't have a file with a filesize of 0kb seems to be from the beginning of March, which IIRC was around the time I upgraded all of the forums from 1.1.7 to 1.1.8, although I don't think that's relevant, as the backups for the other two forums seem to be fine.

I've just installed the new 1.3.0 beta of Java SMF Backup, as I wondered if the older version I was using was the problem, but exactly the same thing's happening - seems to run okay, but the resulting filesize is 0kb... ???

Any idea what might be going wrong?

(I've attached a screenshot of the Java SMF Backup screen)


viulian

  • Administrator
  • Newbie
  • *****
  • Posts: 38
  • Karma: +1/-0
    • View Profile
Re: Is there a maximum backup size Java SMF Backup can handle?
« Reply #1 on: April 15, 2009, 10:36:30 pm »
Hello, and welcome to the forum.

There are a couple of things you need to try out.

First: is it working in the browser ? Try logging into the administrative backend, and issue a backup command - do one trial for it compressed - and another trial for it uncompressed.

If it's working with uncompressed only, please disable compression in the backup tool also. The thing is that when the php scripts attempt to compress the database in memory - they do not use any sort of caching or something, so they first read the SQL backup in memory (let's say 50-60 Mb of data) and then they try to zip it which uses almost the same amount of memory. So if you have a limitation on how much memory a php script can use, it will already be killed - and you'll end up with an empty file.

Second: Please check the log files on the server. Java SMF Backup si just a wrapper, it does the clicks for you as you would do it in the browser. If something went wrong, I would first check the logs on the server, around the time when the backup happens.

Third: If you are using some other theme beside the default one, that might cause the issues. The backup tool tries to identify the form in which it has to put the username and password. If you use some other theme, it might also add its own forms handling language selections, or other things that might confuse the form detection.
To test this you can create a 'backup' user that is admin, and make the user's theme the default one. If backup works then from the Java SMF Backup, then it's the theme.

PS: if none of above works (I mean no errors on the server side, and it works with or without compression in the browser, but not the same with Java SMF Backup), I will have to ask you to provide me with a temporary admin username / pass so I could check it myself and see how the app behaves, and then will provide a bug fix as soon as possible.

Thank you,