https://github.com/gepd/appwrite-sync
Experimental library to sync two appwrite instances
https://github.com/gepd/appwrite-sync
appwrite baas backup server sync
Last synced: 5 months ago
JSON representation
Experimental library to sync two appwrite instances
- Host: GitHub
- URL: https://github.com/gepd/appwrite-sync
- Owner: gepd
- License: mit
- Created: 2023-04-24T20:13:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T04:27:46.000Z (over 2 years ago)
- Last Synced: 2025-03-31T07:34:04.994Z (6 months ago)
- Topics: appwrite, baas, backup, server, sync
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Appwrite Sync
### 🚧 This is an experimental project, backup your data before use it
This is a small, and currently exprimental project, to sync two appwrite instances.
Note: this is a comunity project and isn't maintained by appwrite
### How to use it
1. Clone this repository
2. run `yarn install`
3. To make it work you need to initialize the `AppwriteSync` class like this
```ts
// index.ts
const app = new AppwriteSync({
source: {
endpoint: "",
project: "",
key: "",
},
target: {
endpoint: "",
project: "",
key: "",
},
});
```After this you can sync the two instances with the `sync` method.
```ts
// index.ts
app.sync({
syncDatabases: true,
syncCollections: true,
syncAttributes: true,
syncIndexes: true,
syncDocuments: true,
});
```You can change each option to false to start to sync.
4. finally run `node ./dist/index.js`
### Development
if you update any typescipt file re-compile the code with the `tsc` command (you need to install typescript), after this run `node ./dist/index.js` again
### License
This repository is available under the MIT License.