Skip to content

Commit e472222

Browse files
Create NOTE.md
1 parent 8caf2e6 commit e472222

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

NOTE.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Introduction
2+
3+
> Link to [the discord thread](https://discord.com/channels/564160730845151244/870536298220367902/1207985484333318184)
4+
5+
Hey guys! Thanks for amazing job. We are using AppWrite in production and everything works well.
6+
7+
We are deploying separate AppWrite Docker instance for each client. So we need to diff changed between two appwrite.json configs to update installations one-by-one. The default migration tool is awful: It stucks, It can't export json-per-document backup, It can't show changes in collection schemas, It can't download all files from buckets
8+
9+
So I wrote [a useful set of scripts](https://github.com/react-declarative/appwrite-backup-tool/) which able to
10+
11+
1. Show changes between two schemas: `appwrite.json` and `appwrite.prev.json`
12+
13+
```
14+
npm run appwrite:diff
15+
16+
...
17+
18+
COLLECTION APARTMENT
19+
ADD rent_kom_menedzher_unit
20+
ADD rent_kom_agency_unit
21+
ADD rent_kom_kommisiya_agenstva
22+
CHANGED rent_kom_czena_sobstvennika_valyuta (array true -> false)
23+
CHANGED rent_kom_komissiya_agenstva_unit (array true -> false)
24+
```
25+
26+
2. Backup all collections data into `*.json` files. Bucket files backup also supported
27+
28+
```
29+
npm run appwrite:backup
30+
```
31+
32+
3. Restore collection items and files from buckets
33+
34+
```
35+
npm run appwrite:restore
36+
```
37+
38+
4. Deploy large collections [with more than 200 attributes](https://github.com/appwrite/appwrite/issues/6915). Still not fixed in appwrite-cli
39+
40+
```
41+
npm run appwrite:create-collection
42+
```
43+
44+
5. Create multiple users with preset password
45+
46+
```
47+
npm run appwrite:create-users
48+
```
49+
50+
All these scripts are used in our CI/CD. Without them, dev/prod releases are impossible. I propose a breaking change refactor for appwrite cloud migrations which must be rebuild on top of my tool cause It solve the problem of DevOps while working with multiple development and production environments. Do you have any opinion about it?
51+
52+
https://github.com/react-declarative/appwrite-backup-tool/

0 commit comments

Comments
 (0)