Error on Backup

Permalink
When I start making a backup the following error comes up:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2621408 bytes) in /home/ebtehnl1/public_html/conc/updates/concrete5.6.3.4/concrete/core/libraries/backup.php on line 143

What could be the cause and solution for this?
Thanks in advance!

 
JohntheFish replied on at Permalink Reply
JohntheFish
If your database is big, the built in backup can easily run out of web host resources (memory or processor time) before it can complete.

Solutions:

- Use your host control panel or ssl command line to backup the database

- Remove bloat from your database so it fits into a backup - clear logs, truncate page statistics, remove old page versions. For convenience, this can be done by running Extreme Cleanhttps://www.concrete5.org/marketplace/addons/extreme-clean...

- Backup Voodoo can be set to ignore database bloat and also to spread the load to avoid web host resources https://www.concrete5.org/marketplace/addons/backup-voodoo...
EBri replied on at Permalink Reply
Thanks John,
I think you are right, there is a size issue.
In directory public_html is the 'conc'-directory but there also seems to be a directory 'conc_update' with about the same size as the conc directory.
Probably I made a mistake with an update in the past. If I could remove this directory conc_update dir it would reduce the size enormously and probably solve my problem.
How could I fix this?
(I made a backup using the control panel now).
JohntheFish replied on at Permalink Reply
JohntheFish
Don't remove the update directory!

It will contain your current core version and if removed will kill your site.

It is possible to overwrite the current core and hence free up space, but that won't be relevant to database backups and it requires a certain amount of expertise to do that.

The built in backup is database only, so the size of the updates directory is irrelevant.
[edit] Its the size of the database that you are running into problems with.
EBri replied on at Permalink Reply
Thanks John,
I won't remove the directory since it would not reduce the size of the database backup as you explained.
For now I have a backup made with the controle panel so I can move forward.
Thanks for your super fast help!!
Best regards,
Emile
EBri replied on at Permalink Reply
Now I have a backup, I tried to download an update to version 5.6.3.5. The download was not possible because an error occured:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 17227308 bytes) in /home/ebtehnl1/public_html/conc/updates/concrete5.6.3.4/concrete/core/helpers/file.php on line 234

To me this looks related to the initial problem that I met while trying to make a backup.
(I only used 900 Mb of the diskspace of 2Gb)
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
Its the php memory configuration that is limited, not the server. There will be a value memory_limit in php.ini that defines how much memory php is allowed to use.

If you don't have access to php.ini, you will need to do the update manually.

For the future, Its usually good practice to start a new thread when you have a new question. That enables others to search the forums more effectively and for each question to have a best answer.
EBri replied on at Permalink Reply
Hi John,
You are the man!
The memory_limit was 32Mb. I increased it to 64 Mb. This solved the download (update) issue and the backup issue.
Thanks a lot!!!
Emile