I have a new site I've just imported into Aegir. It's quite large in terms of sites/example.com/files comprising almost 10,000 files totalling 5Gb, but the database itself is a manageable size.

Anyway this site verifies OK but it keeps reverting to "Backups enabled" and spawns multiple backup tasks continually, so the server is always trying to backup this huge site but the backups fail with this error message:

fopen(/var/aegir/platforms/myplatform/sites/example.com/database.sql): failed to open stream: File exists mysql.php:255
Could not write database backup file mysqldump

If I try to change it to "Backups disabled" then this spawns a new verify task, which in turn triggers these multiple backups again.

It's hitting the server pretty hard and I'm getting "high disk write" warnings.

CommentFileSizeAuthor
#3 can_t_disable_site-2867233-3.patch1.12 KBhelmo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

inteja created an issue. See original summary.

helmo’s picture

Project: Hostmaster (Aegir) » Hosting Site Backup Manager
Version: 7.x-3.9 » 7.x-3.x-dev

So there are two problems ... the 'Could not write database backup' could be related to #2616426-42: Add 'fix permissions' task

The reverting to "Backups enabled looks like a hosting_site_backup_manager issue moving it there....

helmo’s picture

Status: Active » Needs review
FileSize
1.12 KB

This patch might be all you need here ... a bad case of two ternary operators on the same line.

helmo’s picture

Status: Needs review » Closed (duplicate)

I found a duplicate issue in #2802179: Disabling Automated Backups for specific sites no longer possible so I'm closing this one. The patch here was not enough to solve it, I'll upload a new patch to that issue.