Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

How to backup Sanity Studio CMS content using the CLI.

4 replies
Last updated: Oct 2, 2023
Hi! Is there any way to backup the Sanity Studio CMS content uploaded?
Oct 2, 2023, 1:40 PM
Can be done via the cli mate...
https://www.sanity.io/docs/dataset#fd38ca03b011
sanity dataset export production
Oct 2, 2023, 1:44 PM
Ok, so I can export the dataset including images? And other question, usually what do you use to store the export? Digitalocean?
Oct 2, 2023, 1:47 PM
Yep that'll give you your images too. Exporting in this manner will save the data to your local machine, you'd have to get a little creative if you wanted it to backup to a server.
Oct 2, 2023, 1:49 PM
ok! I understand! Thank you.
Oct 2, 2023, 1:52 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?