Backup database

How can we backup or export/import our database, say for instance i want to back up user databse from one server and move it to another, I dont see any way of doing this yet?

can anyone please help?

I don’t know if there is a way to do import/export for the database now.
What I was able to do was to use a cloud function that would return all users info from the database:

Moralis.Cloud.define("getUsers", async function (request) {
  const query = new Parse.Query("User");
  const result = await query.find({ useMasterKey: true });
  return result;

this is a suitable work around thank you.

would like to see something officially implemented by the Moralis team eventually.

1 Like

Hi @phyx1u5

Currently backup function for users is not supported.

You can use the solution from @cryptokid

When you say ‘backup function not supported’, does that mean that the Moralis db is not backed up at all at the moment?
How would I handle that when I’m going live? For sure I need a regular automated backup solution. Would be nice to know the plans around that :slight_smile:

Hey @matiyin

I mean, you can’t make it from the dashboard now.
Moralis does backups and all data is safe.

1 Like