View Single Post
  #4   (View Single Post)  
Old 14th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Quote:
Originally Posted by mwotsch View Post
jbhappy,

Thanks for the response. I checked and the contents of /etc/fstab are as follows:
Code:
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad0s1b           none                swap     sw                 0            0
/dev/ad0s1a           /                       ufs         rw                 1            1
/dev/ad2s1d           /opt                  ufs        rw                  2            2
Hence, I should be able to sump / to /opt, then pull that file off the server, and then back up /opt to / and then pull that one down.

So, am I correct in the assumption that the command
Code:
/sbin/dump -0u -f /dev/nsa0 /usr/src
backs up /usr/src to /dev/nsa0, which I think is a tape drive?

Would the following command then do the job?
Code:
#dump -0u -h 0 -C 16 -L -f /opt/path/to/backupfile /
Then move /opt/path/to/backupfile away from that machine altogether and delete it. Then do a
Code:
#dump -0u -h 0 -C 16 -L -f /path/to/backupfile /opt
and remove that file from the server as well.

Thanks for your help.
mwotsch
No, you need -a if you back up to file

I woul use:
Code:
dump -0Lauf - /dev/slice | bzip2 > /backup/file.bz2
or
dump -0Lauf /backup/file /dev/slice
-L is if you backup slice on system, that you are running (meaning, you don't use live CD)
-u can be skipped



EDIT uh sorry, my mistake about that /sbin/dump -0u -f /dev/nsa0 /usr/src
Ignore this post

Edit: there was mistake in 2nd example

Last edited by graudeejs; 14th July 2008 at 06:11 PM.
Reply With Quote