Disk cloning using ufsrestore

I am using ufsdump and ufsrestore to clone the root disk on one of my servers. I would like to automate this as much as possible, but have run into a problem where it prompts for changing the owner/mode when it is complete.

Any ideas for running this in the background and not being prompted?

Here is the output:

DUMP: DUMP IS DONE
set owner/mode for '.'? [yn] n
Directories already exist, set modes anyway? [yn] n

i think that should do the trick:

# ufsdump 0f - /dev/rdsk/c0t0d0s3 | (cd /backup;ufsrestore xf -)

the man page says:
x -> For each file, the owner, modification time, and mode are restored (if possible).

regards PRESSY

I am using the -x switch and it still prompts each time.

$ uname -a
SunOS xxxxxx 5.7 Generic_106541-45 sun4u sparc SUNW,UltraSPARC-IIi-cEngine

$ufsdump 0f - /dev/rdsk/c0t0d0s7 \ | (cd /new_exporthome;ufsrestore xf -)

DUMP: DUMP IS DONE
set owner/mode for '.'? [yn] n
Directories already exist, set modes anyway? [yn] n

i've used the line below since solaris 2.5.1 and it's still good on solaris 10 ...

ufsdump 0uf /dev/rdsk/c0t0d0s7 | (cd /new_exporthome; ufsrestore rf -)

From ufsrestore(1M):