From owner-freebsd-questions Fri Jun 13 07:17:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA01664 for questions-outgoing; Fri, 13 Jun 1997 07:17:47 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA01658 for ; Fri, 13 Jun 1997 07:17:43 -0700 (PDT) Received: by mail.EUnet.hu, id QAA28186; Fri, 13 Jun 1997 16:17:36 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id QAA01778; Fri, 13 Jun 1997 16:10:14 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199706131410.QAA01778@CoDe.hu> Subject: Re: dump/restore with compression To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Fri, 13 Jun 1997 16:10:13 +0200 (MET DST) Cc: brandon@ice.cold.org In-Reply-To: from Brandon Gillespie at "Jun 12, 97 01:40:51 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Is there plans to integrate a compression option into dump and restore? > Does anybody USE dump/restore anymore? I've been using the Digital Unix > equivalent 'vdump' and 'vrestore' for a while now, and it has a lot more > capability than the older dump/restore (such as compression 8) > > Or is there a better alternative? Should I just stick with gnu tar? You can ``dump'' to stout, so you can use: dump ``your dump options'' -f - ``filesys'' | gzip -9 > /dev/dumpdevice -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"