Solved

tar or ufsdump

Posted on 2002-05-06
4
665 Views
Last Modified: 2013-12-27
Hi..

  for full monthly backup,
  which command is better to use

  ufsdump or tar .

  what is the justification.

  tq
0
Comment
Question by:ismahwati
4 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 6993038
If you are doing fullsystem backup, use ufsdump.

ufsdump -- can backup everything (includind device file and links)

if you only need to backup you normal data file (not special file like device file, you can use tar). tar is not for fullsystem backup, soemtime it has problem with handling special file.

cpio is another option for system backup. it can handle special files. Since you are using Solaris UNIX, ufsdump is simple to use.

0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 6994459
As a backup for yuzh most execellent advice...

ufsdump is the preferred mechanism as it will backup all of the special file types. Additionally it understands sparse files where not all of a files allocation is actually used. Some versions of tar can handle those, but others will restore a sparse file as it's full allocation rather than the size it was when dumped.

Also ufsrestore includes an interactive mode which makes restoring part of a backup much easier (see 'man ufsrestore' for details).
0
 
LVL 4

Expert Comment

by:newmang
ID: 6995251
To make it all a lot easier look on the net for a script "hostdump.sh" from W. Curtis Preston

This will make the backups a whole lot easier as it will work out what backup facilities are available on a given host and use the best one present, it uses the system files to determine what file systems exist so it's basically a matter of loading it onto any system and just running it.

Cheers - gavin
0
 

Author Comment

by:ismahwati
ID: 7002835
thank...i will use ufsdump.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now