https://orbstack.dev logo
Time machine backup
# support
a
Hello, I restored a Time Machine backup, but my containers are empty (which makes sense). The drive mounted by Orbstack was not backed up. Is the data still on my drive somewhere? I am particularly concerned about the databases. Thank you in advance for your response.
r
Containers are transient and would not be in any backup. Volumes may be what you're looking for, if your databases are contained in volumes. It's best to have dumps of your databases for situations like this, rather than relying on docker volumes. Most people exclude their docker provider's volumes and images from Time Machine...
a
Thanks for your reply! I think I'm not thinking logically. When the volume goes up, the data comes out from somewhere, right? When Orbstack is off, the data is actually on the disk but in an unmounted volume, is that right? Even if we back up the entire disk, we won't have the data from that volume, is that correct?
r
Different docker providers store volumes different places on the disk. Inside docker it's called a "volume". On your computer, it's a file. If you back up your entire computer, it's there. (Time Machine is often set up to exclude Docker stuff because it changes too much and is too large.) Docker volumes when using OrbStack are at ~/OrbStack/docker/volumes - If that got backed up maybe it will be something you can use. https://docs.orbstack.dev/features/native-files?utm_source=chatgpt.com#volumes
a
Thank you for your message, it helped me move forward. Here is some information: https://docs.orbstack.dev/faq#data-img I checked my Time Machine backup and this folder is empty. And finally, I just saw that there is a setting in the Orb Stack configuration: "Include data in Time Machine backup". Unfortunately, it is unchecked! Good to know for the future!
r
My own opinion is that enabling it will make you unhappy because those files are large and change often, and are not guaranteed to be restore-able. Instead, have text or other backups of key things that are stored in volumes. Here's an overview of the situation for DDEV, it's probably related to yours. https://ddev.com/blog/ddev-backups/
a
Thanks a lot! It's for ddev too. I'll go and check it out.
d
there are also
orb docker volume export/import
commands and volume import/export buttons in the app