backup using ufsdump question

Hi all,

I am taking backup of root file system using ufsdump.

I issued the following commands for backup

1)shutdown -g30 -y

went to single user mode.

2)

# ufsdump0ucf/dev/rmt/0/

The backup of root file system stated to 8GB DAT.

my total root file system was estimated as around 0.8GB

My backup started and received messages dumping pass 1,2,3,4 files etc.

After the message :

Dumping (pass iv) regular files

i received a message

86.7% of dump completed.

After some time i received a message DUMP DONE.

I did not receive 100% of dump completed.

Does it mean that the backup completed succesfully or not?

Also can any one please tell:

Is it possible to take multiple file systems backup to single tape.

/, /usr, /opt, /home etc.(It is not menctioned in solaris manual how to

take multiple filesystems backup using ufsdump)

Can you please write the command ?

Please give your valluable suggestion.

Regards,

Venkat yalla.

[1079 byte] By [venkatyalla] at [2007-11-25 23:35:42]
# 1

> Is it possible to take multiple file systems backup to single tape ?

> Can you please write the command ?

To backup multiple file systems to a single tape just use the "no rewind" tape device. That's the same device but with an n attached.

# rewind the tape to make sure we are at the beginning of the tape

mt -f /dev/rmt/0 rewind

# dump the root file system, but do not include separate file systems

ufsdump 0ucf /dev/rmt/0n /

# append the dump of the separate usr file system

ufsdump 0ucf /dev/rmt/0n /usr

# append next

ufsdump 0ucf /dev/rmt/0n /opt

ufsdump 0ucf /dev/rmt/0n /home

# tape is positioned after the last dump

The file /etc/dumpdates is updated by the "u" option. To keep track of filesystem dumps, just use a second file e.g. /etc/dumpdates.log to which before the dump the date/time is written and after the dump(s) the contents of /etc/dumpdates is appended.

Michael

MAALATFT at 2007-7-5 18:20:10 > top of Java-index,General,Talk to the Sysop...
# 2
Michael , Thanks for your response. I have done it as you said. It works fine.regards,Venkat Yalla
venkatyalla at 2007-7-5 18:20:10 > top of Java-index,General,Talk to the Sysop...
# 3

Just a short follow-up:

Please try to restore a file. This is a little tricky, because the tape must be positioned to the "session".

Change to /tmp (the files are restored to the current directory !).

$ mt rew; ufsrestore -i"

Now you are in interactive mode

At the prompt enter "what"

Information about the current (first) session is displayed

A "?" displays the available commands

Quit ufsrestore

Enter "mt asf 2" to get to the 3rd session (this positions after the second session which is the beginning of the 3rd one).

Invoke "ufsrestore -i"

"what" displays information about the 3rd session.

I'm using the dumpdates.log to record the sessions contained on each tape.

Michael

MAALATFT at 2007-7-5 18:20:10 > top of Java-index,General,Talk to the Sysop...
# 4
Michael, Thank you very much. For your valuable response and time. I understood how to backup multiple file systems using ufsdump.regards,Venkat Yalla.
venkatyalla at 2007-7-5 18:20:10 > top of Java-index,General,Talk to the Sysop...