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

SMF ADMIN PANEL BACKUP IS CRAP! CAN WE HAVE A PATCH RELEASE TO REMOVE IT PLEASE?

<< < (25/26) > >>

MrPhil:

--- Quote from: (F.L.A.M.E.R) on May 01, 2012, 10:46:16 PM ---Yep, looking at the last few lines will give us the answers straight away, but that may need the use of vi or nano command on the server side

--- End quote ---
So long as you haven't yet compressed/gzipped the .sql file, it can be opened, seek to the end, back up a few hundred bytes, and read in the tail end of it. If it doesn't contain any sort of bad-looking message, you're golden. Close the file and compress it if desired.


--- Quote from: K@ on May 02, 2012, 05:43:49 AM ---Thinking about archivers and the like, though, is it possible to do the equivalent of a Cyclic redundancy check? Maybe a checksum?

--- End quote ---
Yeah, but what are you going to compare it against to see if it's a valid file? The backup will be different every time. There's no fixed CRC/MD5 value to check against.

K@:
Ah. Yeah, I had a feeling that that might be the sticking-point.

I wondered if there could be a check done, onsite, to say "This file should be xKB in size, when you get it, which, when the file gets download, would be matched against that.

Like, back in days of yore, the ol' "Verify" thing did, with tape saves, on the Spectrum, etc.

CheekyCat:
[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]

Krash.:

Can the backup function automatically place the forum in and out of maintenace mode?

MrPhil:

--- Quote from: K@ on May 02, 2012, 11:46:09 AM ---I wondered if there could be a check done, onsite, to say "This file should be xKB in size, when you get it, which, when the file gets download, would be matched against that.

--- End quote ---

Unfortunately, that doesn't tell you whether the backup file was complete in the first place, only that it was downloaded correctly. Even, then, going from Linux to Windows PC, the line-ends will change from \n to CRLF, inflating the size... you'd have to count the number of records and figure how much the size would change. Even then, I'm sure it would leave most forum owners thoroughly confused.

If the backup process is killed in the middle due to a timeout or other resource limitation, isn't there always a message at the end that we could look for?


--- 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).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version