Hi
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.
Hi
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.
Hello,
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
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:
category
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:
client.items.all(
filter[ids]: "12,31",
filter[type]: "44",
filter[fields]: "foo",
version: "published"
,
all_pages: true
).each do |item|
puts item.inspect
end
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