Backups using compress

Bill Smith smith at urbana.mcd.mot.com
Fri Nov 30 06:22:39 AEST 1990


In article <25106 at adm.brl.mil> dpence at redstone-emh2.army.mil ( Dwayne Pence) writes:
>Does anyone know of a way to compress files before sending them through 
>cpio or tar to tape without actually creating a ".Z" file on disk.  I am 
>trying to create backup tapes which are compressed versions of our files 
>on disk.  Any help would be appreciated.
>
>
>Dwayne Pence

To write the tape record(s) you ask for, do this:

	find /usr -print | cpio -ocB | compress -c > /dev/<tape_drive>

To extract, do this:

	uncompress < /dev/<tape_drive> | cpio -icBumd

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Bill Smith, Motorola MCD, Urbana Design Center, Urbana, IL 61801
	Email:	smith at urbana.mcd.mot.com, uiucuxc!udc!smith
			Phone: 217 384 8525
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



More information about the Comp.unix.questions mailing list