public function backup(Buildable $build, Logger $logger)
{
foreach ($this->files as $file) {
$path = $build->getSourceDirectory() . DIRECTORY_SEPARATOR . $file;
if (!file_exists($path)) {
$logger->error("file {$path} doesn't exist in the build directory.");
continue;
}
$this->backupFile($path);
}
}