With larger backups eg. with db over 1gb in size, php shows white screen of death

Increasing max_execution_time seems to help here

An example of error is

AH01071: Got error 'PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in httpdocs/web/modules/contrib/backup_migrate/src/Core/Filter/CompressionFilter.php on line 196', referer: https://www.mywebsite.co.uk/admin/config/development/backup_migrate/advanced

My feeling is that:

1. We could increase max execution time in back up and migrate. For me temporarily increasing from 30seconds fixed the problem.
2. We could update the message "It is recommended to not use the "Entire site" backup as it has a tendency of failing on anything but the tiniest of sites. Hopefully this will be fixed in a future release." to provide a some helpful suggestions such as try increasing max_execution time! Also using advanced backup provides option to skip certain tables and streamline the process somewhat.
3. As an alternative, we could even provide an option to backup in batches for larger sites where this is a danger of exceeded max execution time.

Batch api also has away of avoiding max time out. I think migrate UI uses this.

https://stackoverflow.com/questions/5638484/how-can-i-set-the-maximum-ex...
https://stackoverflow.com/questions/3829403/how-to-increase-the-executio...

CommentFileSizeAuthor
#7 3421122-2.patch7.61 KBhimanshu_jhaloya
#5 3421122-1.patch1003 byteshimanshu_jhaloya
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

2dareis2do created an issue. See original summary.

2dareis2do’s picture

Issue summary: View changes

himanshu_jhaloya made their first commit to this issue’s fork.

himanshu_jhaloya’s picture

Assigned: Unassigned » himanshu_jhaloya
himanshu_jhaloya’s picture

Assigned: himanshu_jhaloya » Unassigned
Status: Active » Needs review
StatusFileSize
new1003 bytes

Created a Patch. Please Review

Status: Needs review » Needs work

The last submitted patch, 5: 3421122-1.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

himanshu_jhaloya’s picture

StatusFileSize
new7.61 KB