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
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 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;
}
File backups always silently fail when using Zero Downtime Deployment
-
Dennis moved item to board Live
10 months ago -
Dennis moved item to board Planned
3 years ago -
James Cocker moved item to project Site Level Requests
3 years ago -
James Cocker created the item
3 years ago