Linux - Tape Backup/Restore
SCSI tape drive Rewind : /dev/st0 No-Rewind : /dev/nst0 BACKUP ====== Backup directory /www and /home with tar command (z - compressed): # tar -czf /dev/st0 /www /home To back up the entire file system using tar to a SCSI tape drive, excluding the /proc directory: # tar -cpf /dev/st0 / --exclude=/proc (-p switch indicates that we want to preserve the file permissions) (-M switch, for multi-volume if the backup will not fit on a single tape) The following line backs up all the files and directories listed in MyFiles, the /root directory, and all of the iso files in the /tmp directory: # tar -cpf /dev/st0 -T MyFiles /root /tmp/*.iso (-T switch, put the files and directories that you want to archive in a text file) (note that the tar -T (or files-from) command cannot accept wildcards. Files must be listed explicitly.) You could also execute a script to search the system and then build a list. Here is an example of such a script: #!/bin/sh cat MyFiles > TempList find /usr/share -iname ...