index

LTO Backups

for system backup

It uses [dump][man_dump]/[restore][man_restore] under the hood.

# mt stsetoptions scsi2logical  # figure out /etc/stinit.def
                                # make /dev/tape symlink or use /dev/nst0
$ cd backup
$ tapebackup
Target is required

Dump these file systems:
  /dev/mapper/volume            (     /) Last dump: Level 6, Date ...

Usage: tapebackup [-t /dev/tape] -[0-9] TARGET [...]
$ tapebackup -7 /dev/mapper/volume

remote system backup

Uses rmt

$ mt-gnu --rsh-command='/usr/bin/ssh' -f user@host:tape
$ RSH=/usr/bin/ssh rrestore rrestore -i -f user@host:tape

for files

# mt stclearoptions scsi2logical
  1. tapemount mounts the tape cartrige based on the RFID chip label to /mnt/$LABEL;
  2. tapeumount will unmount and eject the tape.
  3. mkltfs --device=/dev/nst0 --volume-name=anime --tape-serial=A00008 --no-compression --force lto-cm -f /dev/sg5 -w "anime_A00008"