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

[FEATURE] Data migration from self hosted instance #488

Closed
Tracked by #3199
Nikhil-Nandagopal opened this issue Sep 2, 2020 · 11 comments
Closed
Tracked by #3199

[FEATURE] Data migration from self hosted instance #488

Nikhil-Nandagopal opened this issue Sep 2, 2020 · 11 comments
Labels
Business Edition Features that will be a part of our business edition Enhancement New feature or request

Comments

@Nikhil-Nandagopal
Copy link
Contributor

Summary

A user thought it might be a good idea to be able to migrate his data from one ec2 instance to another or from an ec2 instance to our cloud instance

Motivation

Users are initially wary of giving the cloud version their db credentials but over time want to move to the cloud version because it's easier to manage or be able to restore their setup on another ec2 instance incase something un-foreseen happens to their instance

Additional Context

Sentry does a great job with this feature!

@Nikhil-Nandagopal Nikhil-Nandagopal added the Enhancement New feature or request label Sep 2, 2020
@Nikhil-Nandagopal Nikhil-Nandagopal changed the title [Feature] Data migration from self hosted instance [FEATURE] Data migration from self hosted instance Sep 2, 2020
@mohanarpit
Copy link
Member

This is a great idea! Do you have any resources that link to how Sentry achieves this? Would love to learn from a good UX for this feature.

Also, from my initial understanding, this feature requires that we do the following first:

  1. Create a backup of all the data in the DB.
  2. Be able to restore the backup of the DB in another instance. The tricky part will be to preserve all the IDs.

@crooy
Copy link

crooy commented Nov 3, 2020

Hi, so i think my question is related to this ticket. I am looking into running a system like appsmith to build various internal applications for my startup/scale-up.

Now we have a very experienced devops team but we dont want to spend time om worrying about databases if it can be prevented. Which is why I was wondering if you might know if i would run into any issues if I try to run appsmith against AWS DocumentDb instead of running a mongodb in a container?

What other backup/restore solutions would you recommend for me to look at for appsmith/mongodb?

@Nikhil-Nandagopal
Copy link
Contributor Author

Hi @crooy 👋
Your question is actually slightly different than this feature request.
Appsmith internally uses mongo to manage application data and performs all application logic on this db. So it is not a simple backup / restore option. All our application logic is written to interact with a mongo db so it wouldn't be possible to use a different DB. If you are worried about managing the application and database, we have a managed Cloud Version which you can use 😄

@crooy
Copy link

crooy commented Nov 3, 2020

Wow, quick response!

Ok, first of all sorry for hijacking this ticket 😞.

From your answer I cannot be certain you know what AWS Document DB is so to be certain: AWS DocumentDB is a mongodb compatible hosted database, there are some differences. I guess my question is a lazy one, I can also simply try 🤔 .

The thing is, I want to pay for hosted services so I can show an SLA to my product owners. Hypothetically, if I do a daily dump of the mongodb, could i restore the database if i want to go back a week for example?

@Nikhil-Nandagopal
Copy link
Contributor Author

@crooy whoops my bad I might be wrong then. I definitely thought it was a new db. 😂 #TIL
@mohanarpit can you help answer this better?

@mohanarpit
Copy link
Member

@crooy I haven't tried Appsmith against DocumentDB. In theory, it could work but we can't guarantee longer term compatibility because DocumentDB is always a little behind on features supported by MongoDB itself. Hence, I wouldn't officially recommend it to you. But give it a shot and let us know your experience 😄 .

Having said that, incase you don't want to manage databases (who does?), you can either:

  1. Use our cloud hosted version https://app.appsmith.com. In this case, you are transferring your problems of data management to us.
  2. Use MongoDB cloud. Here you get a hosted MongoDB instance with all the bells & whistles around backup, restore etc. You can host it in the same region as your AWS servers as well to minimize latency.

@crooy
Copy link

crooy commented Nov 3, 2020

Thanks! I will let you know in case we try and experience Documentdb! Although you make a good point that mongodb-cloud might be smarter.

@Nikhil-Nandagopal
Copy link
Contributor Author

Nikhil-Nandagopal commented Jul 5, 2021

This is now possible with import / export

@cep21
Copy link

cep21 commented Mar 30, 2022

@crooy did documentdb work?

@crash7
Copy link

crash7 commented Jan 21, 2023

@crooy did documentdb work?

DocumentDB doesn't work for me (tried yesterday with the last version).

@crooy
Copy link

crooy commented Jan 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Business Edition Features that will be a part of our business edition Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants