Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/backup.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-25 18:42:35 +0300
committerGitHub <noreply@github.com>2022-08-25 18:42:35 +0300
commitb0c41bf5e82cf1129bd6f7f51afb297d11d89dcc (patch)
tree2e057c4ef25598ee1955cd274d1ef4142cf9552c
parentb3bb011a868f7ee9d9f0c55c20c01c4974ac2748 (diff)
parent861784505a4344cbbba4b7ce8be9baa73cf934f0 (diff)
Merge pull request #400 from nextcloud/enh/noid/add-noidex
.noindex
-rw-r--r--lib/Service/ExternalFolderService.php1
-rw-r--r--lib/Service/PointService.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/Service/ExternalFolderService.php b/lib/Service/ExternalFolderService.php
index 231c0e4..29ef130 100644
--- a/lib/Service/ExternalFolderService.php
+++ b/lib/Service/ExternalFolderService.php
@@ -745,6 +745,7 @@ class ExternalFolderService {
$node = $folder->newFolder($pointId);
$node->newFile(PointService::NOBACKUP_FILE, '');
+ $node->newFile(PointService::NOINDEX_FILE, '');
}
if ($node->getType() !== FileInfo::TYPE_FOLDER) {
diff --git a/lib/Service/PointService.php b/lib/Service/PointService.php
index 92f9554..3270ce6 100644
--- a/lib/Service/PointService.php
+++ b/lib/Service/PointService.php
@@ -90,6 +90,7 @@ class PointService {
public const NOBACKUP_FILE = '.nobackup';
+ public const NOINDEX_FILE = '.noindex'; // so that fulltextsearch does not index backup
public const SQL_DUMP_FILE = 'backup.sql';
@@ -793,6 +794,7 @@ class PointService {
$folder = $this->appDataRoot->getFolder($path);
$folder->newFile(self::NOBACKUP_FILE, '');
+ $folder->newFile(self::NOINDEX_FILE, '');
$this->backupFSInitiated = true;
}
@@ -996,6 +998,7 @@ class PointService {
}
$folder->newFile(PointService::NOBACKUP_FILE, '');
+ $folder->newFile(PointService::NOINDEX_FILE, '');
$point->setAppDataRootWrapper($this->appDataRoot);
$point->setBaseFolder($folder);