Archived Boards and Threads... > SMF Feedback and Discussion

SMF admin panel backup is crap! Can we have a patch release to remove it please?

<< < (26/26)

kat:
Well, it was worth asking. ;)



--- Quote from: Sabrinova on May 02, 2012, 01:47:54 PM ---[offtopic]

I had a Spectrum, 48K - I broke my heart when I spilt orange juice on it and it wouldn't work anymore.  No more "Horace Goes Skiing" for me....  :'(

[/offtopic]
--- End quote ---

I've still got mine, somewhere...

Angelina Belle:
When the backup ends in the middle, it just ends.
I'll see if I can dig one up...

emanuele:

--- Quote from: MrPhil on May 02, 2012, 02:05:11 PM ---
--- Quote from: Krash. on May 02, 2012, 01:52:00 PM ---Can the backup function automatically place the forum in and out of maintenace mode?

--- End quote ---

Of course it could (and should). The Settings.php file would have to be updated, so it would be a good reason to pull out the $maintenance variable into its own file (included into Settings.php), just like it would be a good idea to pull out the timestamp of the last database error into its own file (hint hint).

--- End quote ---
It could but it shouldn't, without prominent notice at least.
And even so, you would be "in trouble" if the script dies due to a timeout or whatever error because it wouldn't be able to restore the forum to normal mode automatically (yes, that would be a notice that the backup is not good...not very user-friendly and with too many implications... and anyway I still prefer if the admin takes a moment to understand what he is doing and why he gets a warning).
As I wrote at the moment the devel version disables the button if the forum's size is big (well, of course this is an estimate) and maintenance is off, preventing (client side, but if you are crazy enough to force the download you know what you are risking) the download.

MrPhil:

--- Quote from: emanuele on May 02, 2012, 03:18:14 PM ---
--- Quote from: Krash. on May 02, 2012, 01:52:00 PM ---Can the backup function automatically place the forum in and out of maintenace mode?

--- End quote ---

It could but it shouldn't, without prominent notice at least.

--- End quote ---
Of course the admin should be notified if the forum is being put into maintenance mode (which it should be for any size backup). The notice could include a quick reminder of what to do/check if for some reason it doesn't come back within a reasonable time.


--- Quote ---And even so, you would be "in trouble" if the script dies due to a timeout or whatever error because it wouldn't be able to restore the forum to normal mode automatically

--- End quote ---
And that's why you remind the admin each time what's going on.


--- Quote ---I still prefer if the admin takes a moment to understand what he is doing and why he gets a warning).

--- End quote ---
Incurable dreamer, eh? Most admins have no idea what's going on inside of SMF and cannot understand why this or that is happening. They just want and need a cookbook. Most admins are looking for an appliance, not a full time hobby.


--- Quote ---As I wrote at the moment the devel version disables the button if the forum's size is big (well, of course this is an estimate) and maintenance is off, preventing (client side, but if you are crazy enough to force the download you know what you are risking) the download.

--- End quote ---
I feel that maintenance mode (1) should be turned on regardless of the estimated backup size, and that we need to do something to examine the log or backup to see if something bad happened. Do we have any experience with backup problems as to what the end of the file looks like? Does it have any consistent pattern to indicate success or failure?

Put a comment at the top of the .sql file saying that the SMF backup created it. Put a comment at the bottom of the .sql file saying "end of backup". If we see that, is there any reason we can't assume that everything in-between is OK and turn off maintenance mode?

P.S. The maintenance message in Settings.php should then be changed to something about "system maintenance is being performed..." to cover both backups and restores. Or, the text string could be dynamically updated (as a separate, included file) to indicate what's going on.

Navigation

[0] Message Index

[*] Previous page

Go to full version