Export/import DatoCMS

Hi :wave:

Is there any way to have some backup of existing DatoCMS schema? Iโ€™m wondering is it possible to download all models and easy upload again (from the file I guess)? This would be super beneficial at the end.

1 Like


yes sure! Have a look here: https://www.datocms.com/docs/import-and-export/importing-data

if you have more specific questions feel free to ask

@mat_jack1 thanks for your response. It turns out Iโ€™ll need these backup after half a year :wink:

Is there any fast way to download all data using Ruby client? If I just type client.items.all Iโ€™m not getting all data, is there any limitations/pagination for that?

Besides you give me an example how to import data from external sources in to DatoCms. But is there any way to download DatoCMS model structure? e.g. Iโ€™ve got model with below fields:

  • Model fields:
    • Name: string
    • Category: link to model category
    • Description: text
    • Image: file

is there any way to download this model structure? In case I want to move these model to another project/another account.

@mw I agree itโ€™s not very visible in the documentation, but you can do this:

    filter[ids]: "12,31",
    filter[type]: "44",
    filter[fields]: "foo",
    version: "published"
    all_pages: true
).each do |item|
  puts item.inspect

for example, to get all the pages in one go. Itโ€™s here: https://www.datocms.com/docs/content-management-api/resources/item/instances at some point :slight_smile: