QR-BACKUP(1)
πΎ qr-backup(1) β paper backups, but make it cute πΎ
Okay bestie, welcome to the qr-backup(1) manual page. Itβs giving printable QR-code backup chaos, and Iβm obsessed. π
πΈ NAME πΈ
qr-backup β back up file(s) to a series of QR codes on paper. Literally paper. π
β¨ SYNOPSIS β¨
qr-backup [OPTIONS] FILE [FILE...]
qr-backup --restore [OPTIONS]
qr-backup --restore [OPTIONS] IMAGE [IMAGE...]
π DESCRIPTION π
Okay so qr-backup takes a binary file and turns it into a backup thatβs suitable for printing. The backup is a .pdf file stuffed with several barcodes. Main character energy for paper. π
qr-backup --restore restores a paper backup and outputs the original file. Restore happens using a webcam or scanner. No cap.
And plot twist: restore is possible without qr-backup. Yes fr fr. The restore directions are included in the paper backup. π«Ά
π OPTIONS π
--help,-hβ Print a help message.--verbose,-vβ Print more detailed information during run.--version,-Vβ Print theverisonand immediately exit. (Thatβs the spelling on the page, iykyk π)
π BACKUP OPTIONS π
--compress,--no-compressβ This gives a more compact backup, but partial recovery is impossible. Default:compressed.--dpi DPIβ Sets the print resolution of your printer. Default:300.--encrypt generate,--encrypt PASSPHRASEβ Password-protect the backup. If the passphrase isgenerate, a passphrase is automatically generated for you, which you would need to store securely or you will be unable to unlock the data. Default:disabled.--encrypt-print-passphrase,--no-encrypt-print-passphraseβ Print the passphrase on a sheet by itself. Default: print if generated byqr-code, donβt print if passed in.--erasure-coding,--no-erasure-codingβ This allows restoring if some QR codes are lost. Restore with lost codes is only possible usingqr-backup. Default:enabled.--error-correction CORRECTIONβ Sets the error correction level. Options areL(7%),M(15%),Q(25%), andH(30%). Default:M(15%).--filename FILENAMEβ Set the restored filename. Max32chars. Default: same asFILE.--instructions page|cover|both|noneβ Sets how frequently the instructions are printed. Ifcoverorbothis selected, more verbose instructions will be printed on the cover page. Default:page.--note TEXTβ Add a special note to the printout instructions. Can be anything. Default: no note.--num-copies NUMBERβ Print multiple copies of each QR code for redundancy. Default:1.--output FILENAME,-o FILENAMEβ Set the output pdf path (redirecting stdout also works). Default:FILE.qr.pdf.--page WIDTH_POINTS HEIGHT_POINTSβ Sets the usable size of the paper on your printer. This should NOT be8.5 x 11β make sure to include margins. Default:500px x 600px.--qr-version VERSIONβ Uses QR codes, versionVERSION. Versions range from1-40. The bigger the version, the harder to scan but the more data per code. Default:10.--scale SCALEβ Scale QR codes so that each small square in the QR code isSCALE x SCALEpixels. Default:5px.--shuffle,--no-shuffleβ Spread QR codes across pages. This can help prevent data loss. Default: yes if erasure coding is enabled (default), no otherwise.--skip-checks,--no-skip-checksβ Skip erasure code checks, self-restore checks. Default: not skipped.
π¦ RESTORE OPTIONS π¦
--code-count-erasure COUNTβ Specify the number of erasure QR codes. Default:automatic.--code-count-normal COUNTβ Specify the number of normal QR codes. Default:automatic.--compress,--no-compressβ Force decompression (on/off). Default:automatic.--display,--no-displayβ For webcam scanning, (display/donβt display) a webcam preview. Default:display.--encrypt PASSPHRASE,--no-encryptβ Force decryption (on/off) and give the passphrase if decrypting. Default:automatic.--image-restoreβ Force image-based (scanner) restore. Default:automatic.--output FILENAME,-o FILENAMEβ Set the restore file path. Default:stdout.--sha256 SHA256β Include asha256sumto check the file. Giving the initial part of thesha256sumdoes a partial check. Default: no check, prints checksum tostderr.--webcam-restoreβ Force webcam-based restore. Default:automatic.
β EXIT VALUES β
0β Success. This includes certain self-test failures which sometimes fail by chance.1β Invalid command line option.2β File missing or access failed.3β Self-test restore failed.4β Restore failed.5βconvertsubcommand failed.6βzbarimgorzbarcamsubcommand failed.7βgpgsubcommand failed.
π BUGS π
Please report any bugs at https://github.com/za3k/qr-backup/issues .
Sometimes scanned images, including the original PDF, cannot be read successfully and the restore self-check fails. This appears to be a bug in zbar. π
On Debian, Ubuntu and certain other systems, the default system imagemagick policy prevents reading or writing PDFs. Since qr-backup depends on both, it will fail. qr-backup does its best to report this problem clearly.
It is possible to print barcodes so large or small your webcam or scanner cannot read them. Make sure to test your restore process when using non-default settings. Vibe check your printer, bestie. π¨οΈβ¨
π COPYRIGHT π
qr-backup was written by Zachary Vance, and is released into the public domain and under CC0 https://creativecommons.org/share-your-work/public-domain/cc0/ . The generated PDF includes the DejaVu Sans Mono font, which has a separate license https://dejavu-fonts.github.io/License.html .
The qr-backup source code is available at https://github.com/za3k/qr-backup .
π«Ά AUTHORS π«Ά
Zachary Vance.
β¨ Thatβs the whole page, bestie! Source/version:qr-backup 1.1.3; date:March 2025; manual:QR-BACKUP(1). Mwah πβ¨
π¦ where this page comes from
- nixos 26.05: qr-backup 1.1.4
- nixpkgs unstable: qr-backup 1.1.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms