GFDUMP.POSTGRESQL(8)
β¨ GFDUMP.POSTGRESQL β¨
okay so bestie, this is a page from the Gfarm manual set β section 8, the sysadmin section, for the command gfdump.postgresql. yes she's a long name. no we're not shortening it. she's iconic and she knows it π
π NAME π
gfdump.postgresql β dump/restore Gfarm metadata
πΈ SYNOPSIS πΈ
gfdump.postgresql -d [options]
gfdump.postgresql -r [options]
π¦ DESCRIPTION π¦
So. gfdump.postgresql dumps and restores Gfarm metadata that's being managed by PostgreSQL running as the backend database. The way you have to run it is: on the host where the backend database of PostgreSQL is actually running. Like, that host. Not your laptop. Not a different node. That one. π
The command reads gfmd.conf, the config file of gfmd, to get the access info for the backend database. And here's the tea: if gfmd is configured in non-private mode, you need root privilege to read that file. so basically bring your sudo. π
When gfdump.postgresql gets run with the -d option, it dumps the database into the file db.out in the current directory. simple as that, no cap.
When it gets run with -r instead, it restores the database from the dump file db.out in the current directory. but like, it's not just one thing, she does a whole little routine:
- Stop
gfmdif it's running. - Remove the current database.
- Create a database again.
- Restore a database from the dump file.
- Delete the current journal file of
gfmd, if it exists. - Start
gfmdagain.
she's giving full service, honestly. π
π OPTIONS π
--prefixpath β if you pass this,gfdump.postgresqlreadsPREFIX/etc/gfmd.confas the config file ofgfmd. by default it reads%%SYSCONFDIR%%/etc/gfmd.conf.-Pprefix β specify an installation prefix of the backend database, like/usr/local. whengfdump.postgresqlruns a PostgreSQL command such aspg_dump, it assumes that command is installed under the prefix you gave. if you omit this option,gfdump.postgresqlgoes looking through the directories listed in the environment variablePATHfor the commands instead. π-lβ specify a path to the directory where the backend database puts files to store metadata of Gfarm.
if the backend database is PostgreSQL, that directory is commonly called the PGDATA directory. the default is PREFIX/var/gfarm-pgsql where PREFIX is a prefix given by the --prefix option.
-ffile β specify the name of the dump file. default isdb.outat the current directory. π--helpβ show usage, then exit. (she's helping! π«Ά)-tβ show values of configurable parameters in human readable format, then exit immediately.-dβ dump mode. π€-nβ do not start/stopgfmd. (yes this is your "hands off my daemon" flag, love that for you β)-rβ restore mode. π₯
π FILES π
%%SYSCONFDIR%%/gfmd.confβ configuration file forgfmd
π SEE ALSO π
pg_dump(1), dropdb(1), createdb(1), psql(1), gfmd(8)
okay that's the whole page bestie, you're fully caught up, go forth and dump responsibly π§β¨
this was the Gfarm manual, dated 30 Jan 2015 β periodt π π
π¦ where this page comes from
- debian bookworm: gfmd 2.7.20+dfsg-1+b2 Β· BSD-like
- debian trixie: gfmd 2.7.20+dfsg-1.2+b1 Β· BSD-like
- ubuntu jammy: gfmd 2.7.17+dfsg-1build2 Β· BSD-like
- ubuntu noble: gfmd 2.7.20+dfsg-1.1ubuntu1 Β· BSD-like
- ubuntu questing: gfmd 2.7.20+dfsg-1.2
- ubuntu resolute: gfmd 2.7.20+dfsg-1.3 Β· BSD-like
- ubuntu stonking: gfmd 2.7.20+dfsg-1.3build1 Β· BSD-like
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms