Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix migration cloud to self-hosted #385

Merged
merged 4 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions src/routes/docs/advanced/migrations/cloud/+page.markdoc
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
layout: article
title: Migrate from Cloud
description: Migrate to Appwrite from cloud platforms seamlessly. Learn how to move your applications and data to Appwrite for enhanced flexibility and control.
description: Self-hosted application migration made easy with Appwrite. Discover the steps and strategies for migrating your self-hosted apps to Appwrite's managed platform.
difficulty: beginner
readtime: 10
---

Migrations makes it as easy as a couple clicks to move all of your self-hosted project data to a Cloud instance.

Migrations make it as easy as a couple of clicks to move all your Appwrite Cloud data into a self-hosted instance.

{% section #notices step=1 title="Things to keep in mind" %}

Expand All @@ -21,23 +20,25 @@ Migrations makes it as easy as a couple clicks to move all of your self-hosted p

{% section #create-migration step=2 title="Create migration" %}

To begin migrating to self-hosted, make sure to read the [migration overview](/docs/advanced/migrations)
and [things to keep in mind](#notices) sections above.
To begin migrating to self-hosted, make sure to read the [migration overview](/docs/advanced/migrations) and [things to keep in mind](#notices) sections above.

1. Navigate to your self-hosted project's Console and click on the **Migrations** tab.
1. Navigate to your Cloud project's console, navigate to **Settings** and click on the **Migrations** tab.

2. Click **Deploy to Cloud**, you will be redirected to Appwrite Cloud.
1. Under **Export to self-hosted instance**, click **Export data**.

3. You will complete the migration on Appwrite Cloud.
1. You will complete the migration on your self-hosted instance.

{% /section %}

{% section #continue-on-cloud step=3 title="Continue on Appwrite Cloud" %}
{% section #continue-on-self-hosted step=3 title="Continue on self-hosted" %}

1. Once redirected to Appwrite Cloud, you'll be prompted to select an organization and a project. You can migrate to an existing project or create a new one.
1. Once redirected to your self-hosted project, you'll be prompted to select an organization and a project. You can migrate to an existing project or create a new one.

2. Select the data you wish to migrate. You can choose among accounts, databases, documents, files, and functions.
1. Select the data you wish to migrate. You can choose among accounts, databases, documents, files, and functions.

3. Click **Start migration** to start the migration process. You do not need to keep the Appwrite Console open through the process.
1. Click **Start Migration** to start the migration process. You do not need to keep the Appwrite Console open through the process.

{% info title="Keep in mind" %}
Your self-hosted instance will generate an API Key in the background to pass to Appwrite Cloud. You can revoke this key after the migration process is complete.
{% /info %}
{% /section %}
25 changes: 11 additions & 14 deletions src/routes/docs/advanced/migrations/self-hosted/+page.markdoc
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
layout: article
title: Migrate from self-hosted
description: Self-hosted application migration made easy with Appwrite. Discover the steps and strategies for migrating your self-hosted apps to Appwrite's managed platform.
description: Migrate to Appwrite from self-hosted platforms seamlessly. Learn how to move your applications and data to Appwrite for enhanced flexibility and control.
difficulty: beginner
readtime: 20
---

Migrations make it as easy as a couple of clicks to move all your Appwrite Cloud data into a self-hosted instance.
Migrations makes it as easy as a couple clicks to move all of your self-hosted project data to a Cloud instance.

{% section #notices step=1 title="Things to keep in mind" %}

Expand All @@ -21,25 +20,23 @@ Migrations make it as easy as a couple of clicks to move all your Appwrite Cloud

{% section #create-migration step=2 title="Create migration" %}

To begin migrating to self-hosted, make sure to read the [migration overview](/docs/advanced/migrations) and [things to keep in mind](#notices) sections above.
To begin migrating to Cloud, make sure to read the [migration overview](/docs/advanced/migrations)
and [things to keep in mind](#notices) sections above.

1. Navigate to your self-hosted project's console and click on the **Migrations** tab.
1. Navigate to your self-hosted project's Console and click on the **Migrations** tab.

1. Click **Deploy to Cloud**, you will be redirected to Appwrite Cloud.
2. Click **Deploy to Cloud**, you will be redirected to Appwrite Cloud.

1. You will complete the migration on Appwrite Cloud.
3. You will complete the migration on Appwrite Cloud.

{% /section %}

{% section #continue-on-self-hosted step=3 title="Continue on self-hosted" %}
{% section #continue-on-cloud step=3 title="Continue on Appwrite Cloud" %}

1. Once redirected to your self-hosted project, you'll be prompted to select an organization and a project. You can migrate to an existing project or create a new one.
1. Once redirected to Appwrite Cloud, you'll be prompted to select an organization and a project. You can migrate to an existing project or create a new one.

1. Select the data you wish to migrate. You can choose among accounts, databases, documents, files, and functions.
2. Select the data you wish to migrate. You can choose among accounts, databases, documents, files, and functions.

1. Click **Start Migration** to start the migration process. You do not need to keep the Appwrite Console open through the process.
3. Click **Start migration** to start the migration process. You do not need to keep the Appwrite Console open through the process.

{% info title="Keep in mind" %}
Your self-hosted instance will generate an API Key in the background to pass to Appwrite Cloud. You can revoke this key after the migration process is complete.
{% /info %}
{% /section %}