@nocobase/plugin-backup-restore 1.3.47-beta → 1.3.49-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -107
- package/dist/externalVersion.js +5 -5
- package/dist/node_modules/@hapi/topo/package.json +1 -1
- package/dist/node_modules/archiver/package.json +1 -1
- package/dist/node_modules/decompress/package.json +1 -1
- package/dist/node_modules/mkdirp/package.json +1 -1
- package/dist/node_modules/semver/package.json +1 -1
- package/package.json +2 -2
- package/README.zh-CN.md +0 -118
package/README.md
CHANGED
|
@@ -1,118 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NocoBase
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<video width="100%" controls>
|
|
4
|
+
<source src="https://static-docs.nocobase.com/NocoBase0510.mp4" type="video/mp4">
|
|
5
|
+
</video>
|
|
4
6
|
|
|
5
|
-
NocoBase 应用的备份与还原插件,可用于应用的复制、迁移、升级等场景。
|
|
6
7
|
|
|
7
|
-
##
|
|
8
|
+
## What is NocoBase
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
NocoBase is a scalability-first, open-source no-code development platform.
|
|
11
|
+
Instead of investing years of time and millions of dollars in research and development, deploy NocoBase in a few minutes and you'll have a private, controllable, and extremely scalable no-code development platform!
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Homepage:
|
|
14
|
+
https://www.nocobase.com/
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
Online Demo:
|
|
17
|
+
https://demo.nocobase.com/new
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
Documents:
|
|
20
|
+
https://docs.nocobase.com/
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
Commericial license & plugins:
|
|
23
|
+
https://www.nocobase.com/en/commercial
|
|
18
24
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
```
|
|
25
|
+
License agreement:
|
|
26
|
+
https://www.nocobase.com/en/agreement
|
|
22
27
|
|
|
23
|
-
选择需要备份的插件表结构及其数据
|
|
24
28
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
== Required ==
|
|
28
|
-
- migration (core) (Disabled)
|
|
29
|
-
- collections (collection-manager) (Disabled)
|
|
30
|
-
- uiSchemas (ui-schema-storage) (Disabled)
|
|
31
|
-
- uiRoutes (ui-routes-storage) (Disabled)
|
|
32
|
-
- acl (acl) (Disabled)
|
|
33
|
-
- workflowConfig (workflow) (Disabled)
|
|
34
|
-
- snapshot-field (snapshot-field) (Disabled)
|
|
35
|
-
- sequences (sequence-field) (Disabled)
|
|
36
|
-
== Optional ==
|
|
37
|
-
❯◉ executionLogs (workflow)
|
|
38
|
-
◉ users (users)
|
|
39
|
-
◉ storageSetting (file-manager)
|
|
40
|
-
◉ attachmentRecords (file-manager)
|
|
41
|
-
◉ systemSettings (system-settings)
|
|
42
|
-
◉ verificationProviders (verification)
|
|
43
|
-
◉ verificationData (verification)
|
|
44
|
-
◉ oidcProviders (oidc)
|
|
45
|
-
◉ samlProviders (saml)
|
|
46
|
-
◉ mapConfiguration (map)
|
|
47
|
-
(Move up and down to reveal more choices)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
选择需要备份的其他数据表的记录
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
? Select the collection records to be dumped (Press <space> to select, <a> to toggle all, <i> to invert selection, and <enter> to proceed)
|
|
54
|
-
❯◉ Test1
|
|
55
|
-
❯◉ Test2
|
|
56
|
-
❯◉ Test3
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
数据备份成功之后,备份文件位于 `storage/duplicator` 目录下:
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
dumped to /your/apps/a/storage/duplicator/dump-20230210T223910.nbdump
|
|
63
|
-
dumped file size: 20.8 kB
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### 还原数据
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
yarn nocobase restore /your/apps/a/storage/duplicator/dump-20230210T223910.nbdump
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
导入前请先备份数据
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
? Danger !!! This action will overwrite your current data, please make sure you have a backup❗️❗️ (y/N)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
选择需要还原的插件表结构及其数据
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
? Select the plugin collections to be restored (Press <space> to select, <a> to toggle all, <i> to invert selection, and <enter> to proceed)
|
|
82
|
-
== Required ==
|
|
83
|
-
- migration (core) (Disabled)
|
|
84
|
-
- collections (collection-manager) (Disabled)
|
|
85
|
-
- uiSchemas (ui-schema-storage) (Disabled)
|
|
86
|
-
- uiRoutes (ui-routes-storage) (Disabled)
|
|
87
|
-
- acl (acl) (Disabled)
|
|
88
|
-
- workflowConfig (workflow) (Disabled)
|
|
89
|
-
- sequences (sequence-field) (Disabled)
|
|
90
|
-
== Optional ==
|
|
91
|
-
❯◯ executionLogs (workflow)
|
|
92
|
-
◯ users (users)
|
|
93
|
-
◯ storageSetting (file-manager)
|
|
94
|
-
◯ attachmentRecords (file-manager)
|
|
95
|
-
◯ systemSettings (system-settings)
|
|
96
|
-
◯ verificationProviders (verification)
|
|
97
|
-
◯ verificationData (verification)
|
|
98
|
-
◯ auditLogs (audit-logs)
|
|
99
|
-
◯ iframe html storage (iframe-block)
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
选择需要还原的其他数据表的记录
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
? Select the collection records to be restored (Press <space> to select, <a> to toggle all, <i> to invert selection, and <enter> to proceed)
|
|
106
|
-
❯◉ Test1
|
|
107
|
-
❯◉ Test2
|
|
108
|
-
❯◉ Test3
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
成功之后,重启应用
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
# for development
|
|
115
|
-
yarn dev
|
|
116
|
-
# for production
|
|
117
|
-
yarn start
|
|
118
|
-
```
|
|
29
|
+
## Contact Us:
|
|
30
|
+
hello@nocobase.com
|
package/dist/externalVersion.js
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@ant-design/icons": "5.2.6",
|
|
12
12
|
"@formily/antd-v5": "1.1.9",
|
|
13
|
-
"@nocobase/client": "1.3.
|
|
13
|
+
"@nocobase/client": "1.3.49-beta",
|
|
14
14
|
"antd": "5.12.8",
|
|
15
15
|
"react": "18.2.0",
|
|
16
|
-
"@nocobase/server": "1.3.
|
|
17
|
-
"@nocobase/utils": "1.3.
|
|
18
|
-
"@nocobase/database": "1.3.
|
|
16
|
+
"@nocobase/server": "1.3.49-beta",
|
|
17
|
+
"@nocobase/utils": "1.3.49-beta",
|
|
18
|
+
"@nocobase/database": "1.3.49-beta",
|
|
19
19
|
"dayjs": "1.11.10",
|
|
20
20
|
"lodash": "4.17.21",
|
|
21
21
|
"react-i18next": "11.18.6",
|
|
22
|
-
"@nocobase/actions": "1.3.
|
|
22
|
+
"@nocobase/actions": "1.3.49-beta"
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@hapi/topo","description":"Topological sorting with grouping support","version":"6.0.2","repository":"git://github.com/hapijs/topo","main":"lib/index.js","types":"lib/index.d.ts","files":["lib"],"keywords":["topological","sort","toposort","topsort"],"eslintConfig":{"extends":["plugin:@hapi/module"]},"dependencies":{"@hapi/hoek":"^11.0.2"},"devDependencies":{"@hapi/code":"^9.0.3","@hapi/eslint-plugin":"*","@hapi/lab":"^25.1.2","@types/node":"^17.0.31","typescript":"~4.6.4"},"scripts":{"test":"lab -a @hapi/code -t 100 -L -Y","test-cov-html":"lab -a @hapi/code -t 100 -L -r html -o coverage.html"},"license":"BSD-3-Clause","_lastModified":"2024-11-
|
|
1
|
+
{"name":"@hapi/topo","description":"Topological sorting with grouping support","version":"6.0.2","repository":"git://github.com/hapijs/topo","main":"lib/index.js","types":"lib/index.d.ts","files":["lib"],"keywords":["topological","sort","toposort","topsort"],"eslintConfig":{"extends":["plugin:@hapi/module"]},"dependencies":{"@hapi/hoek":"^11.0.2"},"devDependencies":{"@hapi/code":"^9.0.3","@hapi/eslint-plugin":"*","@hapi/lab":"^25.1.2","@types/node":"^17.0.31","typescript":"~4.6.4"},"scripts":{"test":"lab -a @hapi/code -t 100 -L -Y","test-cov-html":"lab -a @hapi/code -t 100 -L -r html -o coverage.html"},"license":"BSD-3-Clause","_lastModified":"2024-11-13T02:30:43.000Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"archiver","version":"5.3.2","description":"a streaming interface for archive generation","homepage":"https://github.com/archiverjs/node-archiver","author":{"name":"Chris Talkington","url":"http://christalkington.com/"},"repository":{"type":"git","url":"https://github.com/archiverjs/node-archiver.git"},"bugs":{"url":"https://github.com/archiverjs/node-archiver/issues"},"license":"MIT","main":"index.js","files":["index.js","lib"],"engines":{"node":">= 10"},"scripts":{"test":"mocha --reporter dot","bench":"node benchmark/simple/pack-zip.js"},"dependencies":{"archiver-utils":"^2.1.0","async":"^3.2.4","buffer-crc32":"^0.2.1","readable-stream":"^3.6.0","readdir-glob":"^1.1.2","tar-stream":"^2.2.0","zip-stream":"^4.1.0"},"devDependencies":{"archiver-jsdoc-theme":"^1.1.3","chai":"^4.3.7","jsdoc":"^3.6.4","mkdirp":"^2.1.5","mocha":"^9.0.2","rimraf":"^4.3.1","stream-bench":"^0.1.2","tar":"^6.1.13","yauzl":"^2.9.0"},"keywords":["archive","archiver","stream","zip","tar"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"_lastModified":"2024-11-
|
|
1
|
+
{"name":"archiver","version":"5.3.2","description":"a streaming interface for archive generation","homepage":"https://github.com/archiverjs/node-archiver","author":{"name":"Chris Talkington","url":"http://christalkington.com/"},"repository":{"type":"git","url":"https://github.com/archiverjs/node-archiver.git"},"bugs":{"url":"https://github.com/archiverjs/node-archiver/issues"},"license":"MIT","main":"index.js","files":["index.js","lib"],"engines":{"node":">= 10"},"scripts":{"test":"mocha --reporter dot","bench":"node benchmark/simple/pack-zip.js"},"dependencies":{"archiver-utils":"^2.1.0","async":"^3.2.4","buffer-crc32":"^0.2.1","readable-stream":"^3.6.0","readdir-glob":"^1.1.2","tar-stream":"^2.2.0","zip-stream":"^4.1.0"},"devDependencies":{"archiver-jsdoc-theme":"^1.1.3","chai":"^4.3.7","jsdoc":"^3.6.4","mkdirp":"^2.1.5","mocha":"^9.0.2","rimraf":"^4.3.1","stream-bench":"^0.1.2","tar":"^6.1.13","yauzl":"^2.9.0"},"keywords":["archive","archiver","stream","zip","tar"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"_lastModified":"2024-11-13T02:30:41.801Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"decompress","version":"4.2.1","description":"Extracting archives made easy","license":"MIT","repository":"kevva/decompress","author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bz2","bzip2","decompress","extract","tar","tar.bz","tar.gz","zip","unzip"],"dependencies":{"decompress-tar":"^4.0.0","decompress-tarbz2":"^4.0.0","decompress-targz":"^4.0.0","decompress-unzip":"^4.0.1","graceful-fs":"^4.1.10","make-dir":"^1.0.0","pify":"^2.3.0","strip-dirs":"^2.0.0"},"devDependencies":{"ava":"*","esm":"^3.2.25","is-jpg":"^1.0.0","path-exists":"^3.0.0","pify":"^2.3.0","rimraf":"^3.0.2","xo":"*"},"ava":{"require":["esm"]},"xo":{"rules":{"promise/prefer-await-to-then":"off"}},"_lastModified":"2024-11-
|
|
1
|
+
{"name":"decompress","version":"4.2.1","description":"Extracting archives made easy","license":"MIT","repository":"kevva/decompress","author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bz2","bzip2","decompress","extract","tar","tar.bz","tar.gz","zip","unzip"],"dependencies":{"decompress-tar":"^4.0.0","decompress-tarbz2":"^4.0.0","decompress-targz":"^4.0.0","decompress-unzip":"^4.0.1","graceful-fs":"^4.1.10","make-dir":"^1.0.0","pify":"^2.3.0","strip-dirs":"^2.0.0"},"devDependencies":{"ava":"*","esm":"^3.2.25","is-jpg":"^1.0.0","path-exists":"^3.0.0","pify":"^2.3.0","rimraf":"^3.0.2","xo":"*"},"ava":{"require":["esm"]},"xo":{"rules":{"promise/prefer-await-to-then":"off"}},"_lastModified":"2024-11-13T02:30:42.760Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"mkdirp","description":"Recursively mkdir, like `mkdir -p`","version":"1.0.4","main":"index.js","keywords":["mkdir","directory","make dir","make","dir","recursive","native"],"repository":{"type":"git","url":"https://github.com/isaacs/node-mkdirp.git"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true,"coverage-map":"map.js"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"bin":"bin/cmd.js","license":"MIT","engines":{"node":">=10"},"files":["bin","lib","index.js"],"_lastModified":"2024-11-
|
|
1
|
+
{"name":"mkdirp","description":"Recursively mkdir, like `mkdir -p`","version":"1.0.4","main":"index.js","keywords":["mkdir","directory","make dir","make","dir","recursive","native"],"repository":{"type":"git","url":"https://github.com/isaacs/node-mkdirp.git"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true,"coverage-map":"map.js"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"bin":"bin/cmd.js","license":"MIT","engines":{"node":">=10"},"files":["bin","lib","index.js"],"_lastModified":"2024-11-13T02:30:41.909Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"semver","version":"7.6.0","description":"The semantic version parser used by npm.","main":"index.js","scripts":{"test":"tap","snap":"tap","lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","postlint":"template-oss-check","lintfix":"npm run lint -- --fix","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"devDependencies":{"@npmcli/eslint-config":"^4.0.0","@npmcli/template-oss":"4.21.3","tap":"^16.0.0"},"license":"ISC","repository":{"type":"git","url":"https://github.com/npm/node-semver.git"},"bin":{"semver":"bin/semver.js"},"files":["bin/","lib/","classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"tap":{"timeout":30,"coverage-map":"map.js","nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":">=10"},"dependencies":{"lru-cache":"^6.0.0"},"author":"GitHub Inc.","templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.21.3","engines":">=10","distPaths":["classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"allowPaths":["/classes/","/functions/","/internal/","/ranges/","/index.js","/preload.js","/range.bnf"],"publish":"true"},"_lastModified":"2024-11-
|
|
1
|
+
{"name":"semver","version":"7.6.0","description":"The semantic version parser used by npm.","main":"index.js","scripts":{"test":"tap","snap":"tap","lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","postlint":"template-oss-check","lintfix":"npm run lint -- --fix","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"devDependencies":{"@npmcli/eslint-config":"^4.0.0","@npmcli/template-oss":"4.21.3","tap":"^16.0.0"},"license":"ISC","repository":{"type":"git","url":"https://github.com/npm/node-semver.git"},"bin":{"semver":"bin/semver.js"},"files":["bin/","lib/","classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"tap":{"timeout":30,"coverage-map":"map.js","nyc-arg":["--exclude","tap-snapshots/**"]},"engines":{"node":">=10"},"dependencies":{"lru-cache":"^6.0.0"},"author":"GitHub Inc.","templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.21.3","engines":">=10","distPaths":["classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"allowPaths":["/classes/","/functions/","/internal/","/ranges/","/index.js","/preload.js","/range.bnf"],"publish":"true"},"_lastModified":"2024-11-13T02:30:43.402Z"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "应用的备份与还原(废弃)",
|
|
5
5
|
"description": "Backup and restore applications for scenarios such as application replication, migration, and upgrades.",
|
|
6
6
|
"description.zh-CN": "备份和还原应用,可用于应用的复制、迁移、升级等场景。",
|
|
7
|
-
"version": "1.3.
|
|
7
|
+
"version": "1.3.49-beta",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/backup-restore",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"keywords": [
|
|
42
42
|
"System management"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "46dde74e2c220ae19bc275bb40be9ddf52485fa9"
|
|
45
45
|
}
|
package/README.zh-CN.md
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# Duplicator
|
|
2
|
-
|
|
3
|
-
[English](./README.md) | 中文
|
|
4
|
-
|
|
5
|
-
NocoBase 应用的备份与还原插件,可用于应用的复制、迁移、升级等场景。
|
|
6
|
-
|
|
7
|
-
## 安装激活
|
|
8
|
-
|
|
9
|
-
内置插件无需手动安装激活。
|
|
10
|
-
|
|
11
|
-
## 使用方法
|
|
12
|
-
|
|
13
|
-
Duplicator 插件提供了 `dump` 和 `restore` 命令,分别用于备份和还原应用数据,可用于单应用的备份和还原,也可以跨应用。如果跨应用还原数据,请保证目标应用 NocoBase 版本与源应用一致,相对应插件也已下载本地。
|
|
14
|
-
|
|
15
|
-
**⚠️ 如果使用了继承(PostgreSQL)、视图、触发器等不兼容的特性,跨数据库还原备份数据可能失败。**
|
|
16
|
-
|
|
17
|
-
### 备份数据
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
yarn nocobase dump
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
选择需要备份的插件表结构及其数据
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
? Select the plugin collections to be dumped (Press <space> to select, <a> to toggle all, <i> to invert selection, and <enter> to proceed)
|
|
27
|
-
== Required ==
|
|
28
|
-
- migration (core) (Disabled)
|
|
29
|
-
- collections (collection-manager) (Disabled)
|
|
30
|
-
- uiSchemas (ui-schema-storage) (Disabled)
|
|
31
|
-
- uiRoutes (ui-routes-storage) (Disabled)
|
|
32
|
-
- acl (acl) (Disabled)
|
|
33
|
-
- workflowConfig (workflow) (Disabled)
|
|
34
|
-
- snapshot-field (snapshot-field) (Disabled)
|
|
35
|
-
- sequences (sequence-field) (Disabled)
|
|
36
|
-
== Optional ==
|
|
37
|
-
❯◉ executionLogs (workflow)
|
|
38
|
-
◉ users (users)
|
|
39
|
-
◉ storageSetting (file-manager)
|
|
40
|
-
◉ attachmentRecords (file-manager)
|
|
41
|
-
◉ systemSettings (system-settings)
|
|
42
|
-
◉ verificationProviders (verification)
|
|
43
|
-
◉ verificationData (verification)
|
|
44
|
-
◉ oidcProviders (oidc)
|
|
45
|
-
◉ samlProviders (saml)
|
|
46
|
-
◉ mapConfiguration (map)
|
|
47
|
-
(Move up and down to reveal more choices)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
选择需要备份的其他数据表的记录
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
? Select the collection records to be dumped (Press <space> to select, <a> to toggle all, <i> to invert selection, and <enter> to proceed)
|
|
54
|
-
❯◉ Test1
|
|
55
|
-
❯◉ Test2
|
|
56
|
-
❯◉ Test3
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
数据备份成功之后,备份文件位于 `storage/duplicator` 目录下:
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
dumped to /your/apps/a/storage/duplicator/dump-20230210T223910.nbdump
|
|
63
|
-
dumped file size: 20.8 kB
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### 还原数据
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
yarn nocobase restore /your/apps/a/storage/duplicator/dump-20230210T223910.nbdump
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
导入前请先备份数据
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
? Danger !!! This action will overwrite your current data, please make sure you have a backup❗️❗️ (y/N)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
选择需要还原的插件表结构及其数据
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
? Select the plugin collections to be restored (Press <space> to select, <a> to toggle all, <i> to invert selection, and <enter> to proceed)
|
|
82
|
-
== Required ==
|
|
83
|
-
- migration (core) (Disabled)
|
|
84
|
-
- collections (collection-manager) (Disabled)
|
|
85
|
-
- uiSchemas (ui-schema-storage) (Disabled)
|
|
86
|
-
- uiRoutes (ui-routes-storage) (Disabled)
|
|
87
|
-
- acl (acl) (Disabled)
|
|
88
|
-
- workflowConfig (workflow) (Disabled)
|
|
89
|
-
- sequences (sequence-field) (Disabled)
|
|
90
|
-
== Optional ==
|
|
91
|
-
❯◯ executionLogs (workflow)
|
|
92
|
-
◯ users (users)
|
|
93
|
-
◯ storageSetting (file-manager)
|
|
94
|
-
◯ attachmentRecords (file-manager)
|
|
95
|
-
◯ systemSettings (system-settings)
|
|
96
|
-
◯ verificationProviders (verification)
|
|
97
|
-
◯ verificationData (verification)
|
|
98
|
-
◯ auditLogs (audit-logs)
|
|
99
|
-
◯ iframe html storage (iframe-block)
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
选择需要还原的其他数据表的记录
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
? Select the collection records to be restored (Press <space> to select, <a> to toggle all, <i> to invert selection, and <enter> to proceed)
|
|
106
|
-
❯◉ Test1
|
|
107
|
-
❯◉ Test2
|
|
108
|
-
❯◉ Test3
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
成功之后,重启应用
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
# for development
|
|
115
|
-
yarn dev
|
|
116
|
-
# for production
|
|
117
|
-
yarn start
|
|
118
|
-
```
|