storyblok-backup 0.1.2 → 0.2.0
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/.env.example +2 -2
- package/README.md +2 -2
- package/bin/storyblok-restore.mjs +2 -2
- package/package.json +1 -1
package/.env.example
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
STORYBLOK_OAUTH_TOKEN=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6
|
|
2
|
-
STORYBLOK_SPACE_ID=123456
|
|
1
|
+
STORYBLOK_OAUTH_TOKEN=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6
|
|
2
|
+
STORYBLOK_SPACE_ID=123456
|
|
3
3
|
STORYBLOK_REGION=eu
|
package/README.md
CHANGED
|
@@ -34,7 +34,6 @@ The backup script will fetch the following resources of a Storyblok space using
|
|
|
34
34
|
The restore script is able to individually restore the resources from the backup files (via update or create) with the following exceptions:
|
|
35
35
|
|
|
36
36
|
- Assets: Only updating asset-resource-data is supported. Creating assets and updating asset-files is not supported.
|
|
37
|
-
- Tasks: Currently not supported due to missing fields returned from management API.
|
|
38
37
|
- Field types: Currently not supported
|
|
39
38
|
- Workflow stage changes: No update possible.
|
|
40
39
|
- Access Tokens: Creating access tokens from backup makes no sense, since it will result in a new token-string.
|
|
@@ -214,13 +213,14 @@ Call `npx storyblok-restore` with the following options:
|
|
|
214
213
|
- 'datasource-entries'
|
|
215
214
|
- 'space'
|
|
216
215
|
- 'space-role'
|
|
216
|
+
- 'task'
|
|
217
217
|
- 'preset'
|
|
218
218
|
- 'webhook'
|
|
219
219
|
- 'workflow'
|
|
220
220
|
- 'workflow-stage'
|
|
221
221
|
- 'release'
|
|
222
222
|
- 'pipeline-branch'
|
|
223
|
-
- 'access-token
|
|
223
|
+
- 'access-token'
|
|
224
224
|
--file <file> (required) File of resource to restore.
|
|
225
225
|
--publish Perform a publish after restore of a story (default=false).
|
|
226
226
|
--create Create a new resource instead of updating (default=false).
|
|
@@ -22,7 +22,7 @@ const resourceTypes = [
|
|
|
22
22
|
'datasource-entries',
|
|
23
23
|
'space',
|
|
24
24
|
'space-role',
|
|
25
|
-
|
|
25
|
+
'task',
|
|
26
26
|
'preset',
|
|
27
27
|
// 'field-type',
|
|
28
28
|
'webhook',
|
|
@@ -54,7 +54,7 @@ OPTIONS
|
|
|
54
54
|
- 'cn': China
|
|
55
55
|
Alternatively, you can set the STORYBLOK_REGION environment variable.
|
|
56
56
|
--type <type> (required) Type of resource to restore. Possible values are:
|
|
57
|
-
- '${resourceTypes.join("'\n - '")}
|
|
57
|
+
- '${resourceTypes.join("'\n - '")}'
|
|
58
58
|
--file <file> (required) File of resource to restore.
|
|
59
59
|
--publish Perform a publish after restore of a story (default=false).
|
|
60
60
|
--create Create a new resource instead of updating (default=false).
|
package/package.json
CHANGED