Allowed memory size of 268435456 bytes exhausted

Hello,

I have set a cronjob for ownbackup, this worked fine for a few days.
But now I get always the following error:

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 23072768 bytes) in /volume1/web/nextcloud/apps/ownbackup/service/backupservice.php on line 92

When I click on “Create Backup” in the settings of Nextcloud I get no Error.

What`s the problem?

Tom

You don’t have enough memory. The database can get quite big and the backup can take some time and resources.

But why does it work when I click on the Create Backup Button?
It this a problem of the cronjob?

Via cronjob, if you run a system cronjob, you probably use php from command line. There can be a different php.ini with different memory limits. Not sure about your system, but you can find it in /etc/php/cli/php.ini (cli=command line interface).