DBS_DUMPTABDATA(1p)
π DBS_DUMPTABDATA(1p) π
okay bestie so this is dbs_dumptabdata, and it lives in the User Contributed Perl Documentation section of the manual (section 1p, iykyk). she's a perl script and she's here to help you get your database out of the database and into files. let's go π«Ά
β¨ NAME β¨
dbs_dumptabdata β literally creates a file set with SQL table data. that's the whole vibe. π
πΈ DESCRIPTION πΈ
so dbs_dumptabdata is a utility whose entire main character job is to create a file set with SQL table data. no cap.
here's the tea: for each table in the database, dbs_dumptabdata calls the appropriate dumper utility, and it points the output at a file named table.sql in the current directory. so you just get a lil pile of files, one per table, sitting right there. iconic. π
and yes, dbs_dumptabdata asks for a password if necessary β she's polite like that. π
π¦ COMMAND LINE PARAMETERS π¦
okay so the required command line parameters are:
- the DBI driver β which is
"Pg"for Postgres or"mysql"for MySQL - the database name
and then there's a third parameter which is optional (she's flexible π) and it specifies the database user and/or the host where the database resides. like, for example: "racke", "racke@linuxia.de" or "@linuxia.de".
π COMMAND LINE OPTIONS π
π -t TABLE[,TABLE,...], --tables=TABLE[,TABLE,...]
comma-separated list of tables to dump. just say which ones you want and she'll dump those ones. periodt. β¨
π --exclude-matching-tables=REGEXP
excludes any table matching the regular expression REGEXP from dumping. so if a table's name matches the regexp, she's not dumping it. not today. π
π --use-printtab
uses the generic dump (similar to "dbs_printtab") instead of the dumper utility provided by the DBMS. so basically you're swapping out the DBMS's own dumper utility for the generic one. lowkey a whole different flavour. π
π BUGS π
msql is not supported. that's it. that's the bug note. msql girlies, this one's not for you π
π AUTHOR π
Stefan Hornburg (Racke), racke@linuxia.de
π SEE ALSO π
and that's the whole page bestie!! this one shipped with perl v5.32.0 and the page is dated 2021-01-06 β go forth and dump those tables, you absolute legend πβ¨π¦
π¦ where this page comes from
- debian bookworm: libdbix-easy-perl 0.21-1.1
- ubuntu jammy: libdbix-easy-perl 0.21-1.1
- ubuntu noble: libdbix-easy-perl 0.21-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms