[SunHELP] Best way to archive ?

Bill Bradford sunhelp at sunhelp.org
Sun Apr 29 08:19:13 CDT 2001


On Sun, Apr 29, 2001 at 04:35:00PM +0530, Sreenivasa Rao Vadalasetty wrote:
> I have a disk partition having the following directory structure 
> /dir/subdir1/*files*
> /dir/subdir2/*files*
> I need to archive the above directory structure onto a tape whenever the
> partition becomes full.  I mean that I will delete the data on this
> partition once it is archived onto tape. When the same parition with the
> same directory structure becomes full, I want to update the previous tape
> with this latest data on this disk. And in future, I should be able to
> selectively restore only one of the files in one of the sub directories.
> Please suggest me an efficient way of doing this.  I was thinking to use
> ufsdump/ufsrestore or tar... but not clear how to make use of  ufsdump for
> this purpose. 
> Please let me know if you need more information to suggest a better
> soultion.
> Sreenivas.

If its just those subdirectories, you have to use tar, because
ufsdump is for entire partitions (afaik).

cd /dir
tar -cvf /dev/<tapedevice> subdir1 subdir2
mt -t /dev/<tapedevice> rewoffl

store the tape 8-)

You can use -zcvf if you have GNU tar and GNU zip (gzip) installed
and want to compress the files on the tape.

Bill

-- 
Bill Bradford
mrbill at mrbill.net
Austin, TX



More information about the SunHELP mailing list