Chapter 12: Backing Up and Restoring

Commands:

Command Description Examples
compress The compress utility will attempt to reduce the size of the named files. -v, -f

$ compress -vf file
file: compression 37% -- replaced with file.Z

jar Combines backup and compress into one tool. c,t,x, f, v

$ jar cvf bundle.jar *
adding 0.au
adding 1.au
adding 2.au
adding 3.au
$
tar The tar command archives and extracts files to and from a single file called a tarfile. c,t,x, f, v

$ tar cvf backup.tar /home/user2/*

uncompress The uncompress utility will return a previously compressed file back to its original size -v

$ uncompress -vf file.Z