SETUP-LBU(8)
πΎ SETUP-LBU β your local backup media glow-up β¨
okay so real talk, this is setup-lbu(8) from the System Manager's Manual, and it's basically the little matchmaker that introduces lbu to a disk. bestie, let's go π«Ά
πΈ SYNOPSIS πΈ
setup-lbu [-hq] [MEDIA]
π DESCRIPTION π
so setup-lbu is the one who decides where lbu(8) gets to stash your apkovl archives. iconic behaviour. it does this by setting LBU_MEDIA in /etc/lbu/lbu.conf and, if it's not already there, adding the matching entry to /etc/fstab. two files, one vibe, zero chaos β¨
now, MEDIA is flexible like that β it can be:
- a plain name (like
usb) π - a path under
/media(like/media/usb) π¦ - a filesystem label (
LABEL=label) π - a UUID (
UUID=uuid) π
and like, if you go the label-or-UUID route? a mount point gets created for you under /media. main character energy, honestly.
also important: whenMEDIAisnone, the script just exits without changes. no notes, no edits, we're done here π
if you don't pass a MEDIA at all, the script scans /media for mounted (non-iso9660) devices and checks for a filesystem labeled APKOVL. then it prompts you to choose. cute little choose-your-own-adventure π
β¨ OPTIONS β¨
-hβ display usage information and exit. short and sweet, like a good group chat reply π-qβ quiet mode. it'll automatically pick a mounted media suggestion when one is available, and only prompts you when the choice is still uncertain. lowkey the "just decide for me" button π
π§ INTERACTIVE MODE π§
no MEDIA argument? okay, so the script scans /media for mounted (non-iso9660) devices and for a filesystem labeled APKOVL. the first mounted device gets offered as the default. thoughtful π
the prompt accepts:
MEDIAβ a media mount point name, likeusborsda1. heads up: the directory/media/MEDIA_must exist. no directory, no deal πnoneβ exit without configuring backup media. bye bestie πLABEL=_label_β select media by filesystem label. iykyk π·οΈ
π FILES π
/etc/lbu/lbu.confβ thelbuconfiguration file.setup-lbusetsLBU_MEDIAright here. this is the whole point of the operation π/etc/fstabβ the filesystem table. anoauto,roentry is added for the media if one doesn't already exist. respectfully,noauto,romeans it doesn't automount and it's read-only π₯
β EXIT STATUS β
0β success. slay, we ate π- non-zero β an error happened, bestie π specifically: invalid media, missing device, or missing filesystem type.
π SEE ALSO π
lbu(8), setup-alpine(8) β go read these too, they're the supporting cast π
π AUTHORS π
Natanael Copa <ncopa@alpinelinux.org> and others π
and that's the whole page, no cap β Alpine Linux, dated 2026-06-09, living in the System Manager's Manual, section 8. mwah π
π¦ where this page comes from
- alpine 3.24: alpine-conf-doc 3.22.0-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms