| Search: This Site | People | Departments | Penn State |
![]() |
![]() |
| contact | PRI news | directory | sitemap | home |
There are many ways to archive data to removable media. Including the following that are supported on PopNet:
Each of the above media have advantages and disadvantages. If you are intested in using any of the last 3 options listed, please ask Joe Broniszewski.
In addition to the different media avaliable, there are different archive programs available including cpio, tar, the mtools, bar, and dump.
Using tar
The tar command can be used on either a device (tape drive) or a file. Below are examples of archiving, checking contents, and restoring files.
Tar examples
|
Command |
Description |
Media |
| tar cfv archive.tar file1 file2 file3 | Archive 3 files to a tar file called archive.tar |
file |
| tar cfv /dev/rmt/0 . | Archive current directory to tape drive |
tape |
| tar tfv /dev/rmt/0 | Look at contents of tape archive |
tape |
| tar tfv file.tar | Look at contents of archive called file.tar |
file |
| tar xfv file.tar | Restore entire archive. |
file |
| tar xfv file.tar "file2 file3" | Restore file2 and file3 from archive |
file |
| tar xfv /dev/rmt/0 | Restore entire archive from tape |
tape |