by tarr11 · 4y ago · 0 comments
You can tar up your flat files as well, but that is a separate process and can be time consuming for larger directories.
Perhaps there is a use case for a file system backed by portable database like sqlite, such that you can just mount the volume and send it around without pain, but can prefer to use normal command line utils (ls, rm, grep, etc) instead of interacting via SQL.
(This also works without Docker of course, but Docker makes me feel safer when I do stuff like this)
Since we're talking about copying a folder, I'm not sure why you'd feel safer doing it via an additional layer of abstraction.
I know that PG data is usually in /var/lib/postgresql/data, but I like Docker because if I ever need a 2nd or 3rd database on one system, I can give them more meaningful names and not feel like I'm touching Important System-Wide Stuff.
My intuition is that you're expected to do some kind of migration or export/import, because the on-disk format probably changes between major versions.
We have file formats like ODF which are just zip packages with regular files inside