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:
authorMaxence Lange <maxence@artificial-owl.com>2022-08-26 14:50:37 +0300
committerGitHub <noreply@github.com>2022-08-26 14:50:37 +0300
commit759cd54715fd7a8e838b0add4f6b0ce535dcd040 (patch)
treecfb41161dcb188b7220bef27ff67a14549d2758d
parent7fdea765d6218d4702d62f7adce6907669b742bc (diff)
parenta67fdc252320cbfb4c3b4025539ae53689b73d57 (diff)
Merge pull request #403 from nextcloud/backport/400/stable24
[stable24] .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);