This repository contains information that i found useful while setting up and creating LTO tapes.
tar czvf /dev/st0 /home/database
- c creates new tar archive.
- z compresses archive
- v verbose mode.
- /dev/st0 is the tape device
- /home/database is the directory that is being backed up to tape.
sudo tar cvf - Directory/ | gpg --symmetric --cipher-algo AES256 | sudo dd of=/dev/st0 bs=64k status=progress
See files that are stored on the tape.
tar tvf /dev/st0
Restoring to a directory.
tar tvf /dev/st0 -C /PATH/TO/RESTORE/BACKUP
See file files are stored on the tape.
sudo dd if=/dev/st0 bs=64k | gpg --decrypt | tar xvf -
mt -f /dev/st0 erase
dmesg | grep st
lspci