Skip to content

Commit

Permalink
Merge pull request #132 from palantirnet/acquia-backup-fixes
Browse files Browse the repository at this point in the history
Acquia backup fixes
  • Loading branch information
becw authored May 23, 2019
2 parents c20d7a4 + 7bc313c commit 4979c47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TheBuild/Acquia/GetLatestBackupTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ protected function getBackupRecords($file) {

return $backups;
}
elseif (count($backups) === 0) {
// The site might not have been backed up yet.
throw new BuildException('No Acquia Cloud backups found: ' . $file->getCanonicalPath());
}
}
throw new BuildException('Acquia Cloud backup records could not be loaded from JSON: ' . $file->getCanonicalPath());
}
Expand Down
1 change: 1 addition & 0 deletions targets/acquia.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@


<target name="acquia-get-backup" description="Download the latest database backup from Acquia.">
<mkdir dir="${acquia.backups}" />
<getAcquiaBackup dir="${acquia.backups}" realm="${acquia.realm}" site="${acquia.site}" env="${acquia.env}" credentialsFile="${acquia.cloud.conf}" maxAge="${acquia.backup_age_hours}" database="${acquia.database}" propertyName="drupal.site.load_db.file" />
</target>

Expand Down

0 comments on commit 4979c47

Please sign in to comment.