When a site has "Zero Downtime Deployment" enabled, any File Backups only back up the symlink, and not any actual site files. This can easily go unnoticed as no alert is issued, because the backup task thinks it has completed successfully.

From support ticket #6303

Nathan Geerinck
Nathan Geerinck · · Edited

Merged Backups: temporary files not deleted on fail into this item

Created by: Nathan Geerinck

When a backup of a database fails, temporary files are not deleted.

Needs extra investigation:

  • Sites with Zero Downtime Deployments;
  • Large SQL files;
Dennis
Dennis ·

The fix for this, is still coming. For now, the bypass is rather easy, change your backup path from:

/home/ploi/example.com

to:

/home/ploi/example.com-deploy

Note the appended -deploy.

Daniel
Daniel ·

Any update on this?

Daniel
Daniel · · Edited

@Dennis maybe the following script can help

        if (is_link($this->webPath)) {
            $realPath = realpath($this->webPath);

            if (!$realPath || !is_dir($realPath)) {
                throw new \Exception("Symlink wijst niet naar geldige map: {$this->webPath}");
            }

            $sourcePath = $realPath;
        } else {
            $sourcePath = $this->webPath;
        }
Lukas
Lukas ·

with suffix -deploy "Exclude folders/files" not work correctly

File backups always silently fail when using Zero Downtime Deployment

13 total votes
Quick Actions
Activity
View recent activity and updates
Use arrow keys to navigate