diff --git a/core/Local/Project.php b/core/Local/Project.php index be44337..effde60 100644 --- a/core/Local/Project.php +++ b/core/Local/Project.php @@ -176,6 +176,11 @@ protected function RunDirectories(string $DestRoot, Common\Date $When): Common\Datastore { + if($this->Dirs->Count() === 0) + return new Common\Datastore; + + //////// + $Commands = new Common\Datastore; $BackupRoot = $this->GetBackupRoot($DestRoot, $When, 'dirs'); Common\Filesystem\Util::MkDir($BackupRoot); @@ -197,6 +202,11 @@ protected function RunRepos(string $DestRoot, Common\Date $When): Common\Datastore { + if($this->Repos->Count() === 0) + return new Common\Datastore; + + //////// + $Commands = new Common\Datastore; $BackupRoot = $this->GetBackupRoot($DestRoot, $When, 'repos'); Common\Filesystem\Util::MkDir($BackupRoot); @@ -218,6 +228,11 @@ protected function RunDatabases(string $DestRoot, Common\Date $When): Common\Datastore { + if($this->Databases->Count() === 0) + return new Common\Datastore; + + //////// + $Commands = new Common\Datastore; $BackupRoot = $this->GetBackupRoot($DestRoot, $When, 'dbs'); Common\Filesystem\Util::MkDir($BackupRoot);