Skip to content

Commit 362cad7

Browse files
committed
add comment with link
Signed-off-by: Simon L. <[email protected]>
1 parent 983e523 commit 362cad7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

php/src/Data/ConfigurationManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,8 @@ private function ValidateBorgLocationVars(string $location, string $repo) : void
487487
throw new InvalidSettingConfigurationException("The path must start with '/', and must not end with '/'! Another option is to use the docker volume name 'nextcloud_aio_backupdir'.");
488488
}
489489

490+
// Prevent backup to be contained in Nextcloud Datadir as this will delete the backup archive upon restore
491+
// See https://github.com/nextcloud/all-in-one/issues/6607
490492
if (str_starts_with($location . '/', rtrim($this->GetNextcloudDatadirMount(), '/') . '/')) {
491493
throw new InvalidSettingConfigurationException("The path must not be a children of or equal to NEXTCLOUD_DATADIR, which is currently set to " . $this->GetNextcloudDatadirMount());
492494
}

0 commit comments

Comments
 (0)