tar Command
Traditional UNIX tape archive command
Generate a tar backup: tar -cvf device files
- Can generate a tar file as well as tapes or diskettes
- Backs up files and directory trees
#tar -cvf /dev/rmt0.3 /home
Restore from a tar backup: - Restores individual files, directories, or all
- Retains owner and group if issued by root
#tar -xvf /dev/rmt0 /home/team01/mydir
List contents of a tar backup: - Operates as tar -x but doesn't create files
#tar -tvf /dev/rmt0
Tar: tar -cvf /dev/rmt0 /home/myfiles
Restore TAR:
tar -xvf /dev/rmt0 /home/team01/mydir
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.