BF_COPY(1)

πŸ’– bf_copy β€” bestie's guide to cloning ur bogofilter folder πŸ’–

okay so this is a page from the Bogofilter Reference Manual, section 1 (that's the "user commands" shelf, iykyk) ✨ and it's literally all about bf_copy, a lil shell script that goes copy 🫢


✨ NAME ✨

bf_copy β€” a shell script that copies a bogofilter working directory, no cap πŸ’…


🌸 SYNOPSIS 🌸

bf_copy [-c] source_dir destination_dir

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie: bf_copy copies a bogofilter working directory into another directory. that's the whole vibe. πŸŽ€

rn it copies these three things:

  • the database files, aka *.db πŸ“
  • the related files, aka log.* πŸ“
  • DB_CONFIG β€” but only if it's actually there, so don't come for me if it's missing πŸ™ˆ

πŸ’… OPTIONS πŸ’…

  • -c β€” this one makes it copy only the active log files, not every single one. without it? default behaviour is to copy all the log files. so -c is the picky-eater option πŸ“

⭐ EXIT STATUS ⭐

the script dips out with status code 0 when everything went great ✨, and nonzero when it ran into trouble 😭. that's it, that's the whole check.


πŸ’€ BUGS πŸ’€

heads up bestie, this is a real one: the script just assumes every single *.db file in the source directory is relevant and copies all of them. that might not actually match your configuration, fr fr. so double check before u trust it πŸ‘‘

🌈 NOTES 🌈

  • this script is meant to be used with Berkeley DB and SQLite based bogofilter versions 🧚
  • it also expects a SUSv2 compliant shell. so if ur on Solaris, u should have the SUNWxcu4 package installed (back when bogofilter is configured) so that /usr/xpg4/bin/sh can be used. yes that's the whole path, don't @ me 🌸

πŸ‘‘ AUTHORS πŸ‘‘

Matthias Andree πŸ’œ


and that's a wrap, bestie πŸŽ€ this lil page is from the Bogofilter manual, dated 05/19/2019. go forth and copy ur directories, u got this πŸ’–βœ¨πŸ¦‹