Skip to content

Commit 5273590

Browse files
committed
replacing node by file
1 parent e1906f9 commit 5273590

File tree

6 files changed

+11
-269
lines changed

6 files changed

+11
-269
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ You can search and compare restoring point available locally and on configured r
8484

8585
**Search for a specific file:**
8686

87-
./occ backup:node:search [--since|--until|--point] <string>
87+
./occ backup:file:search [--since|--until|--point] <string>
8888

8989
Search for a file, based on its name.
9090

91-
example: `./occ backup:node:search test.jpg --since 2021-09-23`
91+
example: `./occ backup:file:search test.jpg --since 2021-09-23`
9292

9393

9494
**History of specific a file:**
9595

96-
./occ backup:node:history [--since|--until] <dataPack> <fullPath>
96+
./occ backup:file:history [--since|--until] <dataPack> <fullPath>
9797

9898
Display the history of a file.
9999

100-
example: `./occ backup:node:history data cult/files/backup1.md`
100+
example: `./occ backup:file:history data cult/files/backup1.md`
101101

102102

103103
**Import a Restoring Point**

appinfo/info.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
44
<id>backup</id>
55
<name>Backup</name>
6-
<description><![CDATA[Backup. Restore.]]></description>
6+
<description><![CDATA[Backup today. Restore tomorrow.]]></description>
77
<licence>agpl</licence>
88
<author mail="maxence@artificial-owl.com">Maxence Lange</author>
99
<version>0.2.0</version>
@@ -36,8 +36,8 @@
3636
<command>OCA\Backup\Command\PointScan</command>
3737
<command>OCA\Backup\Command\PointUpload</command>
3838

39-
<command>OCA\Backup\Command\NodeHistory</command>
40-
<command>OCA\Backup\Command\NodeSearch</command>
39+
<command>OCA\Backup\Command\FileHistory</command>
40+
<command>OCA\Backup\Command\FileSearch</command>
4141

4242
<command>OCA\Backup\Command\SetupExport</command>
4343
<command>OCA\Backup\Command\SetupImport</command>

lib/Command/Details.php

Lines changed: 0 additions & 159 deletions
This file was deleted.

lib/Command/NodeHistory.php renamed to lib/Command/FileHistory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
*
5353
* @package OCA\Backup\Command
5454
*/
55-
class NodeHistory extends Base {
55+
class FileHistory extends Base {
5656

5757

5858
/** @var PointService */
@@ -82,7 +82,7 @@ public function __construct(PointService $pointService, ArchiveService $archiveS
8282
protected function configure() {
8383
parent::configure();
8484

85-
$this->setName('backup:node:history')
85+
$this->setName('backup:file:history')
8686
->setDescription('Get the history of a file')
8787
->addArgument('data', InputArgument::REQUIRED, 'name of the data pack')
8888
->addArgument('filename', InputArgument::REQUIRED, 'full path of the file')

lib/Command/NodeSearch.php renamed to lib/Command/FileSearch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
*
5555
* @package OCA\Backup\Command
5656
*/
57-
class NodeSearch extends Base {
57+
class FileSearch extends Base {
5858

5959

6060
use TArrayTools;
@@ -88,7 +88,7 @@ public function __construct(PointService $pointService, ArchiveService $chunkSer
8888
protected function configure() {
8989
parent::configure();
9090

91-
$this->setName('backup:node:search')
91+
$this->setName('backup:file:search')
9292
->setDescription('Search a specific file in your restoring points')
9393
->addArgument('search', InputArgument::REQUIRED, 'path/name to search')
9494
->addOption(

lib/Command/Listing.php

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)