Date: Thu, 16 Mar 2000 10:57:43 -0500 From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: ph3414a <phooper@nebs.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: dump command Message-ID: <20000316105743.A62772@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <38D0E994.EA1E0D71@nebs.com>; from phooper@nebs.com on Thu, Mar 16, 2000 at 09:03:00AM -0500 References: <38D0E994.EA1E0D71@nebs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 16, 2000 at 09:03:00AM -0500, ph3414a wrote: > Greetings, > > I want to dump to a jaz drive. I can easily get it to work using the > dump command. What does not seem as obvious to me is how I can get > multiple file systems on one jaz drive. There seems to be no > specification in the man pages or Lehey's manual on how to do this. > > Here is what I am doing that works for a single file system: > > $ dump -0ua -f /dev/da0 /usr > > How can I get more file systems on the media without overwriting the > other dumps? Put a filesystem on the Jaz and dump to files. I have been doing this for a long time. Here is my script, #!/bin/sh # # jazdump - Weekly dump to a Jaz disk. # # Usage: jazdump level # # Toss a Jaz disk in the drive, su to root # and execute this command. Enter the level # of the dump. The Jaz disk is expected to # have a UFS format. Just change the 'mount' # command if it were *gag* MSDOS, # # mount -t msdos /dev/sd0 /mnt/jaz # ^^^^^^^^ # If the fdisk or disklabel info for wd0 has # changed, those are saved as well. JAZDEV=/dev/da4 if [ -z $1 ] || [ $1 -gt 9 ] || [ $1 -lt 0 ]; then echo "jazdump: dump level must be 0-9, invalid level: $1" exit 1 fi if ! mount $JAZDEV /mnt/jaz; then echo "jazdump: could not mount Jaz disk, no dumps done" exit 1 fi # Here go the dumps. Remember add or remove any # additional filesystems here. cd /mnt/jaz umask 222 dump -au -$1 -f - / | gzip > root_$1.dmp.gz dump -au -$1 -f - /usr | gzip > usr_$1.dmp.gz dump -au -$1 -f - /var | gzip > var_$1.dmp.gz dump -au -$1 -f - /home | gzip > home_$1.dmp.gz echo "" echo "jazdump: all dumps complete" #### # I've cut the disklabel and fdisk stuff for brevity #### # We need to get out of the directory to umount # the drive. Might as well go $HOME. cd if umount /mnt/jaz; then echo "jazdump: Jaz unmounted." else echo "jazdump: could not unmout Jaz disk." fi exit 0 If you need help putting a filesystem on a Jaz, try the list again. It's not a big deal. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000316105743.A62772>