@acuity/directus-extension-acuity-backup 1.6.0 → 2.0.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/README.md CHANGED
@@ -15,16 +15,36 @@ A powerful Directus bundle extension that provides full or selective backup of c
15
15
 
16
16
  ## Installation
17
17
 
18
- Install the package from npm:
18
+ ### Docker (Recommended)
19
+
20
+ On your server, inside the directory mounted to `/directus/extensions`:
19
21
 
20
22
  ```bash
21
- npm install directus-extension-acuity-backup
23
+ mkdir acuity-backup && cd acuity-backup
24
+ npm pack @acuity/directus-extension-acuity-backup
25
+ tar -xzf *.tgz --strip-components=1
26
+ rm *.tgz
27
+ npm install --prod
22
28
  ```
23
29
 
24
- Or, use the Directus CLI:
30
+ Restart Directus to load the extension:
25
31
 
26
32
  ```bash
27
- directus add directus-extension-acuity-backup
33
+ docker compose restart directus
34
+ ```
35
+
36
+ ### Dockerfile
37
+
38
+ Alternatively, bake it into a custom image:
39
+
40
+ ```dockerfile
41
+ FROM directus/directus:11
42
+
43
+ USER root
44
+ RUN corepack enable
45
+ USER node
46
+
47
+ RUN pnpm install @acuity/directus-extension-acuity-backup
28
48
  ```
29
49
 
30
50
  ## Configuration
@@ -162,16 +182,17 @@ Backups are ZIP archives with the following structure:
162
182
 
163
183
  ```
164
184
  backup-2025-02-24-150000.zip
165
- ├── manifest.json # Backup metadata
185
+ ├── manifest.json # Backup metadata (version 1.2.0)
166
186
  ├── schema.json # Complete schema definition
167
187
  ├── relations.json # Relationship mappings
188
+ ├── views.json # Field groups & collection view settings
189
+ ├── fields-meta.json # Full field metadata (interface, display, options)
168
190
  ├── collections/
169
191
  │ ├── articles.json
170
192
  │ ├── authors.json
171
193
  │ └── categories.json
172
194
  └── files/
173
- ├── image-001.jpg
174
- ├── document-001.pdf
195
+ ├── uuid.meta.json # Media file metadata per file
175
196
  └── ...
176
197
  ```
177
198