rbh-diff(1)

πŸ“¦ version 3.1.7, in opensuse-leap 16.0

πŸ’… rbh-diff β€” ok so this is the diff queen

Bestie, welcome to rbh-diff(1), straight outta the Robinhood 3.0 manual (yes, the robinhood suite, not the app, pls don't ask me about stocks πŸ’€). This page lives in section 1 of the manual, and honestly? It's giving "spot the difference" but make it filesystem. Let's go πŸŽ€


✨ NAME ✨

rbh-diff β€” literally lists the differences between the robinhood database and the filesystem. That's it. That's the whole vibe. Your db and your fs are supposed to be twinning, and this tool tells you when they're not 🫢


✨ SYNOPSIS ✨

rbh-diff [options]

No positional args, no chaos β€” just options, bestie. Pick your flags and go 🌸


✨ OPTIONS ✨

  • -s dir, --scan=dir β€” only scan the specified subdir. Like, scope it down. Don't do the whole filesystem when you only care about one little corner of it πŸ™ˆ
  • -d attrset, --diff=attrset *: β€” display changes for the given set of attributes. *attrset is a list of options in: path, posix, stripe, all, status, notimes, noatime. Yes, it's a whole little menu of attribute groups β€” pick your fighter πŸ‘‘
  • -a {fs|db}, --apply[={fs|db}] β€” the "actually do something about it" flag.
    • db (the default): apply changes to the database, using the filesystem as the reference.
    • fs: revert changes in the filesystem, using the database as the reference.

Two directions, two very different consequences β€” know which way you're pointing that thing πŸ”₯

  • --dry-run β€” if you're doing --apply=fs, this displays the operations on the filesystem without performing them. A little peek behind the curtain before you commit, no cap πŸ™
  • -b, --from-backend β€” when applying changes to the filesystem (--apply=fs), recover objects from the backend storage. Otherwise? It recovers orphaned objects on OSTs. Choose wisely, bestie πŸ’€

πŸŽ€ CONFIG FILE OPTIONS πŸŽ€

  • -f file, --config-file=configfile β€” path to the configuration file (or a short name). Point it at your config and let it cook πŸ“

⭐ MISCELLANEOUS OPTIONS ⭐

  • -l level, --log-level=loglevel β€” force the log verbosity level, and yes, it overrides the configuration value. Allowed values: CRIT, MAJOR, EVENT, VERB, DEBUG, FULL. From "barely a whisper" all the way to "tell me everything, I'm obsessed" 🌈
  • -h, --help β€” display a short help about command line options. The classic. When in doubt, ask for help 🫢
  • -V, --version β€” display version info. Iconic, brief, does exactly what it says πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

The whole friend group, fr fr 🧚


Heads up bestie: --apply=db and --apply=fs hit completely different things. One rewrites your database, the other rewrites your filesystem. Do not just yolo a -a without clocking which value you're passing, okay? 😭

That's the whole page, babes β€” source and version Robinhood 3.0, dated 07 July 2016 (yes she's an elder but she still slays πŸ’œ). Go diff something. Periodt. ✨

πŸ“¦ where this page comes from