SUMMARY: ufsrestore in a fully "non-interactive" mode

From: Sabrina Lautier <slautier_at_lavache.com>
Date: Mon Dec 16 2002 - 10:39:05 EST
Hi !

Thanks a lot for all your answers !

Here is the solution I've finally chosen:
I use "ufsrestore rf -" instead of xf option.

This seems to have solved the pb: ufsrestore doesn't ask question 
anymore.

Regards,

Sabrina

> Sabrina Lautier wrote:
>
> Hi all !
> Does anybody know how to start an ufsrestore command in a
> fully "non-
> interactif" mode ?
>
> Here the ufsdump/ufsrestore commands I use to backup/restore
> data:
> /usr/sbin/ufsdump 0f - /dev/rdsk/c0t0d0s0 | (cd /backup_disk
> ; /usr/sbin/ufsrestore xfy -)
>
> This command is started from the crontab, so it must be
> launched in a fully "non-interactive" mode.
>
> At the end of the restoration, the ufsrestore command ask
> for the following informations:
> set owner/mode for '.'? [yn]
> Directories already exist, set modes anyway? [yn]
>
> The response to the both questions is yes (y) but how to
> tell it to ufsrestore without having to type them ?
>
> I haven't found any options to solve this issue.
> I've tried the following:
> $ /usr/sbin/ufsdump 0f - /dev/rdsk/c0t0d0s0 | (cd
> /backup_disk ; /usr/sbin/ufsrestore xfy - < ufsrestore_answer )
> (the file ufsrestore_answer contains 2 lines with 'y'), but
> this doesn't work :-(.
>
> Any idea of how to solve this pb ?
>
> Any help would be greatly appreciated.
> Thanks,
> Sabrina

---------------------------------------------
Powered by Alinto (http://www.alinto.net)
        for lavache.com (http://www.lavacheautomatique.com)
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Dec 16 10:42:22 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:00 EST