Skip to content

Commit

Permalink
only make dirs that are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmagicii committed May 17, 2024
1 parent dcd623b commit 969a51f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/Local/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 969a51f

Please sign in to comment.