READ_TAPE(8)

๐Ÿ’พ READ_TAPE(8) โ€” the read_tape glow-up โœจ

okay bestie, welcome to the AFS Command Reference ๐ŸŽ€ this one is read_tape, and she's lowkey a legend because she works completely solo. no server, no client, just vibes and a tape drive ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

read_tape โ€” reads volume dumps from a backup tape to a file ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

read_tape -tape <tape device>
   -restore <# of volumes to restore>
   -skip <# of volumes to skip>
   -file <filename> [-scan] [-noask] [-label]
   [-vheaders] [-verbose] [-help]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

so here's the tea โ˜•: read_tape reads an OpenAFS backup tape and prompts you for each dump file to save. that's it, that's the whole job, and she does it flawlessly ๐Ÿซถ

the iconic part? this command does not require any OpenAFS infrastructure. like, none. she doesn't need an OpenAFS client or server to be available โ€” which is literally not the case with the backup(8) command. so when everything else is down and you're stress-crying at 3am, read_tape is the friend who shows up with snacks ๐Ÿ˜ญ๐Ÿ”ฅ

the dump files will be named for the Read/Write name of the volume restored. after saving each dump file, you can use vos restore or restorevol to restore the volume into AFS space and non-AFS space respectively ๐ŸŒˆ

and here's how the tape-reading choreography goes: read_tape reads the tape while skipping the specified number of volumes, and after that, it restores the specified number of volumes. also she doesn't rewind the tape, so you can run her multiple times in succession. queen behavior, honestly ๐Ÿ‘‘


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -tape <tape device> โ€” specifies the tape device from which to restore ๐ŸŽ€
  • -restore <# of volumes to restore> โ€” specifies the number of volumes to restore from tape โœจ
  • -skip <# of volumes to skip> โ€” specifies the number of volumes to skip before starting the restore ๐ŸŒธ
  • -file <filename> โ€” specifies an alternate name for the restored volume dump file rather than the default of the volume name ๐Ÿฆ‹
  • -scan โ€” scans the tape ๐Ÿ”
  • -noask โ€” doesn't prompt for each volume ๐Ÿ™ˆ
  • -label โ€” displays the full dump label ๐Ÿท๏ธ
  • -vheaders โ€” displays the full volume headers ๐Ÿ“‹
  • -verbose โ€” produces on the standard output stream a detailed trace of the command's execution. if this argument is omitted, only warnings and error messages appear ๐Ÿ‘€
  • -help โ€” prints the online help for this command. all other valid options are ignored ๐Ÿซถ

๐ŸŒŸ EXAMPLES ๐ŸŒŸ

the following command will read the third through fifth volumes from the tape device /dev/tape without prompting:

% read_tape -tape /dev/tape -skip 2 -restore 3 -noask

see how -skip 2 + -restore 3 = volumes 3, 4, and 5? math is math, bestie ๐Ÿงฎโœจ


๐Ÿ‘‘ PRIVILEGE REQUIRED ๐Ÿ‘‘

the issuer must have access to read and write to the specified tape device. no tape permissions, no tape magic, periodt ๐Ÿ’€


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹


Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>

this documentation is covered by the BSD License as written in the doc/LICENSE file. this man page was written by Jason Edgecombe for OpenAFS.


and that's the whole page, bestie!! ๐ŸŽ€ this beauty ships with OpenAFS and the version/date stamp on her is 2026-07-27 โ€” go read some tapes, you absolute icon ๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from