Is it possible to export a database' schema and data, similar to https://stackoverflow.com/a/1515975/14731, programmatically (without using the GUI)?
I'm trying to:
- Export a database' schema and data from a remote server to a local file.
- I want the schema for all tables, but the data for a subset of the tables. Meaning, I need to exclude data from some tables up-front. We are talking about terabytes of data which are too big to duplicate or send over the wire.
- Import the data from the local file to a different remote server.
- Ideally do this all programmatically, without using the GUI