Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: bluevoodu - marraskuu 16, 2004, 11:28:01 AP

Otsikko: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 16, 2004, 11:28:01 AP
I have 73 members, and nearly 20000 posts (in 1107 topics)... and I am only getting 656Kb sized backups.

I used to get about 1.2 megs earlier on.  When I did the forum maintenance... it was dropped to 500Kb for the longest time.   Then one day, It was about 5-6 megs large and was like that for a few weeks (even while I was doing the forum maintenance).  But  the last 2 weeks... the backup size has been down to 600-656 Kb.

Is there something wrong?

thanks for your help.
†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: Ben_S - marraskuu 16, 2004, 11:42:05 AP
Deffinatly not working, open the file with notepad and check the bottom line.
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 16, 2004, 03:33:09 IP
Here is what I see
<br />
<b>Fatal error</b>:  Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 1823 bytes) in <b>/home/www/********/forums/Sources/DumpDatabase.php</b> on line <b>218</b><br />


I bleeped out my server name

Looks like we have an error......

Thanks,
†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 16, 2004, 09:56:36 IP
anyone?


†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: andrea - marraskuu 16, 2004, 10:09:57 IP
Do you have shell access or can you activate crontabs on your server? If so you can dump the database with a script. If not ask your host to pass you a database dump and move your host asap after you got the complete dump.
Otsikko: Re: are my sql backups working right?
Kirjoitti: [Unknown] - marraskuu 16, 2004, 11:55:56 IP
You might try my create_backup.php I'm creating, but it's not totally done being tested...

-[Unknown]
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 18, 2004, 01:20:49 IP
Lainaus käyttäjältä: andrea - marraskuu 16, 2004, 10:09:57 IP
Do you have shell access or can you activate crontabs on your server? If so you can dump the database with a script. If not ask your host to pass you a database dump and move your host asap after you got the complete dump.
Why move my host?  I can get to the shell, yes.


LainaaYou might try my create_backup.php I'm creating, but it's not totally done being tested...
How stable is that?
*no offense... just asking :)*

†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: andrea - marraskuu 18, 2004, 02:00:04 IP
If you have shell access then you can use the shell commands or the shell scripts which are listed in this thread:

http://www.yabbse.org/community/index.php?thread=15902
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 18, 2004, 02:31:00 IP
I understand that... but I am more curious of why you said "move your host"

why is that?

†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: andrea - marraskuu 18, 2004, 03:49:23 IP
I only wrote that in case you haven't shell access or crontabs. Since you wrote you cannot dump the full database with php. It is important that you can dump the full forum database somehow. If you have shell access everything should be fine.
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 18, 2004, 04:08:49 IP
so... does anyone know why I cannot?

or I what I need to fix this? I want to be able to sql backup in the mainenance section.

†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: [Unknown] - marraskuu 18, 2004, 04:12:14 IP
If you want that, you'll need to ask your host to increase the allowed memory_limit....

-[Unknown]
Otsikko: Re: are my sql backups working right?
Kirjoitti: [Unknown] - marraskuu 21, 2004, 08:40:28 IP
Okay, you can *try* finding the following in Sources/DumpDatabase.php:

@set_time_limit(600);

Below it, add:

@ini_set('memory_limit', '128M');

Any help?

-[Unknown]
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 21, 2004, 09:23:28 IP
I'll try this shortly.  I appreciate the help!  I am sure everything will be cool once I get  to the dedicated server though.

can I ask... what will the effect of this be?
IE will there be any slow down?  or any negative effects?



†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: [Unknown] - marraskuu 21, 2004, 09:57:47 IP
If it works, it will take a very long time, but you'll get the whole backup.

-[Unknown]
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 23, 2004, 04:34:53 IP
it did not work.... what other solutions are there?

Thanks for your help!  I do appreciate it.
†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 23, 2004, 04:47:33 IP
what memory limit would I need increase to? In case I need to ask..

just curious.

thanks,
†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: [Unknown] - marraskuu 23, 2004, 08:50:56 IP
You'll want it increased to about the size of your database, I'm afraid.

-[Unknown]
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - marraskuu 30, 2004, 08:23:50 IP
The DB size is 50 megs  that doesn't seem like a big amount of memory....   :-\

I'll give that a shot.

†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - joulukuu 01, 2004, 10:57:08 IP
well... I have a problem, I can only have 8 megs at this time.

Once I get to my dedicated server, there won't be any problems.... but until then..... what is the best solution?

I gotta get a good backup... Its been..... FOREVER since I was able to get a good one.

†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: andrea - joulukuu 01, 2004, 11:19:01 IP
Lainaus käyttäjältä: andrea - marraskuu 18, 2004, 02:00:04 IP
If you have shell access then you can use the shell commands or the shell scripts which are listed in this thread:

http://www.yabbse.org/community/index.php?thread=15902
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - helmikuu 10, 2005, 10:47:26 AP
I have been backing up my database via my ssh now.... but I have moved to a dedicated server with 1 gig of ram.... and I am still encountering the same problem with trying to download the SQL file from the SMF admin panel.  I only get about 1 meg done and then it quits.

Can this still be a ram issue?

†B†V†
Otsikko: Re: are my sql backups working right?
Kirjoitti: [Unknown] - helmikuu 11, 2005, 06:14:41 IP
It could be a max_execution_time/memory_limit issue.

-[Unknown]
Otsikko: Re: are my sql backups working right?
Kirjoitti: andrea - helmikuu 11, 2005, 08:30:07 IP
It is *not* an issue. A 50 MB database usually cannot be dumped any longer with the admin menu or phpMyAdmin because of timeout problems. That is why it *must* be dumped with ssh or crontab.
Otsikko: Re: are my sql backups working right?
Kirjoitti: [Unknown] - helmikuu 12, 2005, 04:53:01 AP
Lainaus käyttäjältä: andrea - helmikuu 11, 2005, 08:30:07 IP
It is *not* an issue. A 50 MB database usually cannot be dumped any longer with the admin menu or phpMyAdmin because of timeout problems. That is why it *must* be dumped with ssh or crontab.

If I were to set all my timeouts hugely high in my browser, Apache, MySQL, PHP, and increase the memory limits for all of the above, it would go through.  This combination of settings, however, is hard to coax together, so that's why I prefer ssh myself as well.

-[Unknown]
Otsikko: Re: are my sql backups working right?
Kirjoitti: bluevoodu - helmikuu 28, 2005, 10:36:04 IP
yeah... I almost prefer the ssh now anyway lol

but... my DB is only 20 megs.. and I am on a ded server with 1024 memory...
I just wanted to report back that I didn't think it was a mem issue because I am on my own server with more than enough ram... 80 gig hard drive..etc

I appreciate your help

Thanks,
BV
Otsikko: Re: are my sql backups working right?
Kirjoitti: [Unknown] - helmikuu 28, 2005, 11:03:27 IP
It's not a memory issue, it's a memory limit issue.  PHP, Apache, and MySQL all have hard limits you can set to make it such that they don't use too much memory.... and if those limits are too low, it's nearly impossible to generate backups the way the administration center does currently.

-[Unknown]