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...
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3421122-2.patch | 7.61 KB | himanshu_jhaloya |
| #5 | 3421122-1.patch | 1003 bytes | himanshu_jhaloya |
Issue fork backup_migrate-3421122
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
Comment #2
2dareis2do commentedComment #4
himanshu_jhaloya commentedComment #5
himanshu_jhaloya commentedCreated a Patch. Please Review
Comment #7
himanshu_jhaloya commented