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
- 
Clone this repository 
- 
run yarn install
- 
To make it work you need to initialize the AppwriteSyncclass like this
// 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.
// 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.
- finally run node ./dist/index.js
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
This repository is available under the MIT License.