Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Non-interactive ufsrestore

Status
Not open for further replies.

PADFOR

Programmer
Feb 5, 2001
25
GB
How do you specify the volume, and owner/mode on the command line using the command ufsrestore?

At the moment I have a script that use the following command:

ufsrestore xf <servername>:/dev/rmt/1 << EOF

1

y

EOF
 
you could try using 'r' instead of 'x' ... maybe.
 
Have you tried piuttin your commands in a file and 'feeding' the command? ie

filea consists of:

1
y

Then:

ufsrestore <servername>:/dev/rmt/1 < filea

Don't know if this will work, but let us know. Cheers.
 
The &quot;r&quot; option restores everything on tape. I only want to restore certain file systems.

Cheers for your suggestion.
 
then if it works with passing in the commands for you, then thats probably the best way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top