storyblok-backup 0.1.1 → 0.1.2
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 +4 -4
- package/bin/storyblok-backup.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,12 +31,12 @@ The backup script will fetch the following resources of a Storyblok space using
|
|
|
31
31
|
- Pipeline Branches
|
|
32
32
|
- Access Tokens
|
|
33
33
|
|
|
34
|
-
The restore script is able to individually restore the
|
|
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
|
-
- Assets: Creating assets is not supported
|
|
37
|
-
- Tasks: Currently not supported due to missing fields returned from management API
|
|
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
38
|
- Field types: Currently not supported
|
|
39
|
-
- Workflow stage changes: No update possible
|
|
39
|
+
- Workflow stage changes: No update possible.
|
|
40
40
|
- Access Tokens: Creating access tokens from backup makes no sense, since it will result in a new token-string.
|
|
41
41
|
|
|
42
42
|
## Installation
|
package/bin/storyblok-backup.mjs
CHANGED
|
@@ -106,8 +106,8 @@ const fileName =
|
|
|
106
106
|
[
|
|
107
107
|
filePrefix,
|
|
108
108
|
new Date().getFullYear(),
|
|
109
|
-
new Date().getMonth().toString().padStart(2, '0'),
|
|
110
|
-
new Date().
|
|
109
|
+
(new Date().getMonth() + 1).toString().padStart(2, '0'),
|
|
110
|
+
new Date().getDate().toString().padStart(2, '0'),
|
|
111
111
|
new Date().getHours().toString().padStart(2, '0'),
|
|
112
112
|
new Date().getMinutes().toString().padStart(2, '0'),
|
|
113
113
|
new Date().getSeconds().toString().padStart(2, '0'),
|
package/package.json
CHANGED