BD_PGSQL_PURGE(8)
π bd_pgsql_purge(8) β the bestie manual β¨
okay so this is bd_pgsql_purge, and it lives in section 8 of the System Manager's Manual. she's a summarizer script for bandwidthd in postgresql mode. no cap. π«Ά
π NAME π
bd_pgsql_purge β summarizer script for bandwidthd (postgresql mode)
β¨ DESCRIPTION β¨
so like. this program generates the SQL code that should be run at certain intervals to summarize the data collected by bandwidthd (in postgresql mode) and purge the detailed records. that's her whole job and she eats every time. π
but here's the thing bestie β the program itself only generates the SQL code. it does not run it. it does not touch your database. it just hands you the SQL like "here girl, do something with this." π
you need to feed it to your postgresql server yourself. the classic way is piping the output to the psql program:
bd_pgsql_purge | psql
π fr fr, if you just run this and stare at the terminal output expecting the database to be cleaned, nothing happens. YOU have to do the feeding. she's a generator, not a doer.
adding a crontab script that runs weekly and cleans up the database is recommended. lowkey the intended lifestyle tbh. πΈ
π FILES π
/usr/sbin/bd_pgsql_purgeβ the script to generate sql code π/etc/cron.weekly/bandwidthd-pgsqlβ default schedule forbd_pgsql_purgeπ
π SEE ALSO π
furter information available at the website: http://bandwidthd.sourceforge.net π
π«Ά AUTHOR π«Ά
this manual page was written by Andreas Henriksson <andreas@fatal.se>, for the Debian GNU/Linux system. iconic of him honestly. π
and that's the whole page bestie!! this one came from the System Manager's Manual, dated 8 Dec 2007, and yeah β it's the BD_PGSQL_PURGE(8) page, go off. π¦β¨
π¦ where this page comes from
- debian bookworm: bandwidthd 2.0.1+cvs20090917-14
- debian bookworm: bandwidthd-pgsql 2.0.1+cvs20090917-14
- debian trixie: bandwidthd 2.0.1+cvs20090917-18
- debian trixie: bandwidthd-pgsql 2.0.1+cvs20090917-18
- ubuntu jammy: bandwidthd 2.0.1+cvs20090917-13build1
- ubuntu jammy: bandwidthd-pgsql 2.0.1+cvs20090917-13build1
- ubuntu noble: bandwidthd 2.0.1+cvs20090917-16build2
- ubuntu noble: bandwidthd-pgsql 2.0.1+cvs20090917-16build2
- ubuntu questing: bandwidthd 2.0.1+cvs20090917-18
- ubuntu questing: bandwidthd-pgsql 2.0.1+cvs20090917-18
- ubuntu resolute: bandwidthd 2.0.1+cvs20090917-18build1
- ubuntu resolute: bandwidthd-pgsql 2.0.1+cvs20090917-18build1
- ubuntu stonking: bandwidthd 2.0.1+cvs20090917-19
- ubuntu stonking: bandwidthd-pgsql 2.0.1+cvs20090917-19
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms