Unix administration - About backup the files and filesystems

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > January 2004 > About backup the files and filesystems





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author About backup the files and filesystems
zhaohui yang

2004-01-23, 4:28 pm

Hi,

Sorry to bother you all. We need help.
We use "ufsdump" to dump the whole partition to the tape and "tar" to
tar some files in an external harddisk to the tape. But when we try to
take a look at the content of the tape, we only can see the ufsdump part
but cannot see the tar files. Why is this? Can anyone answer my question?
Thank you very much.
-Z

-------------------------------------------


phn@icke-reklam.ipsec.nu

2004-01-23, 4:28 pm

zhaohui yang <zyang1@students.uiuc.edu> wrote:
quote:

> Hi,


quote:

> Sorry to bother you all. We need help.
> We use "ufsdump" to dump the whole partition to the tape and "tar" to
> tar some files in an external harddisk to the tape. But when we try to
> take a look at the content of the tape, we only can see the ufsdump part
> but cannot see the tar files. Why is this? Can anyone answer my question?
> Thank you very much.
> -Z



Did you append the tarfiles AFTER the ufsdump portion ? Then you will
need to forward the tape one filemark ( mt fsf 1 ) before using tar.
( don't forget to use a non-rewind tapedevice )

/PS
i shure hope you made the above ufsdump to a non-rewind-after-close device,
when the backup was done, otherwize the tape will rewind when ufsdump is done
and the tar will overwrite the dump.
/DS

quote:

> -------------------------------------------





--
Peter Håkanson
IPSec Sverige ( At Gothenburg Riverside )
Sorry about my e-mail address, but i'm trying to keep spam out,
remove "icke-reklam" if you feel for mailing me. Thanx.
phn@icke-reklam.ipsec.nu

2004-01-23, 4:28 pm

zhaohui yang <zyang1@students.uiuc.edu> wrote:
quote:

> Hi,


quote:

> Sorry to bother you all. We need help.
> We use "ufsdump" to dump the whole partition to the tape and "tar" to
> tar some files in an external harddisk to the tape. But when we try to
> take a look at the content of the tape, we only can see the ufsdump part
> but cannot see the tar files. Why is this? Can anyone answer my question?
> Thank you very much.
> -Z



Did you append the tarfiles AFTER the ufsdump portion ? Then you will
need to forward the tape one filemark ( mt fsf 1 ) before using tar.
( don't forget to use a non-rewind tapedevice )

/PS
i shure hope you made the above ufsdump to a non-rewind-after-close device,
when the backup was done, otherwize the tape will rewind when ufsdump is done
and the tar will overwrite the dump.
/DS

quote:

> -------------------------------------------





--
Peter Håkanson
IPSec Sverige ( At Gothenburg Riverside )
Sorry about my e-mail address, but i'm trying to keep spam out,
remove "icke-reklam" if you feel for mailing me. Thanx.
zhaohui yang

2004-01-23, 4:28 pm

Thanks.
Before we have a wrong impression that ufsdump can only dump the whole
partition. But actually we can dump subdirectory by using ufsdump. so the
problem is resolved.
You are right, tar command will open the device before it excutes and will
close after it's done. And when it's done, it will auto rewind the device
to the beginning. The way to tar multiple folders at one time is
tar cvf /dev/rmt/0 folder1 folder2 folder3...
-Z

-------------------------------------------


On Mon, 14 Jul 2003 phn@icke-reklam.ipsec.nu wrote:
quote:

> zhaohui yang <zyang1@students.uiuc.edu> wrote:
>
> Well, if you make a dump to a non-rewind device, the tape will be rewound
> when dump is finished. using tar to the same device will overwrite the du=


mp.
quote:

> Clearly not what you need.
>
> Either learn "how-to-use-non-rewind-device" or change strategy :
>
> ( use tar before dump, saving the output of tar to a file , or
> use a separate tape for the tar step, or
> use tar for the whole backup [not what i usually recommend])
>
>
>
>
>
>
>
o[QUOTE][color=darkred]
to[QUOTE][color=darkred]
part[QUOTE][color=darkred]
tion?[QUOTE][color=darkred]
vice,[QUOTE][color=darkred]
is done[QUOTE][color=darkred]
out,[QUOTE][color=darkred]
>
>
> --
> Peter H=E5kanson
> IPSec Sverige ( At Gothenburg Riverside )
> Sorry about my e-mail address, but i'm trying to keep spam out=


,
quote:

> =09 remove "icke-reklam" if you feel for mailing me. Thanx.
>



zhaohui yang

2004-01-23, 4:28 pm

Thanks.
Before we have a wrong impression that ufsdump can only dump the whole
partition. But actually we can dump subdirectory by using ufsdump. so the
problem is resolved.
You are right, tar command will open the device before it excutes and will
close after it's done. And when it's done, it will auto rewind the device
to the beginning. The way to tar multiple folders at one time is
tar cvf /dev/rmt/0 folder1 folder2 folder3...
-Z

-------------------------------------------


On Mon, 14 Jul 2003 phn@icke-reklam.ipsec.nu wrote:
quote:

> zhaohui yang <zyang1@students.uiuc.edu> wrote:
>
> Well, if you make a dump to a non-rewind device, the tape will be rewound
> when dump is finished. using tar to the same device will overwrite the du=


mp.
quote:

> Clearly not what you need.
>
> Either learn "how-to-use-non-rewind-device" or change strategy :
>
> ( use tar before dump, saving the output of tar to a file , or
> use a separate tape for the tar step, or
> use tar for the whole backup [not what i usually recommend])
>
>
>
>
>
>
>
o[QUOTE][color=darkred]
to[QUOTE][color=darkred]
part[QUOTE][color=darkred]
tion?[QUOTE][color=darkred]
vice,[QUOTE][color=darkred]
is done[QUOTE][color=darkred]
out,[QUOTE][color=darkred]
>
>
> --
> Peter H=E5kanson
> IPSec Sverige ( At Gothenburg Riverside )
> Sorry about my e-mail address, but i'm trying to keep spam out=


,
quote:

> =09 remove "icke-reklam" if you feel for mailing me. Thanx.
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com