Re: running restore non-interactive

2005-01-21 Thread Ruben de Groot
On Mon, Jan 17, 2005 at 02:11:34PM +0100, Roger 'Rocky' Vetterberg typed:
 Hi list.
 
   Im trying to setup a machine to mirror its entire drive using 
 dump/restore to a secondary drive.
 The dump works fine, but at the end of each session, restore always 
 asks set owner/mode for '.'?. This makes it impossible to automate 
 the task, which is what I would to accomplish.

What exact commands are you using? I have scripts doing 

cd /mnt/drive2/partitionX
dump 0aLf - /partitionX | restore rf -

without being asked anything.

 I have read the man-page, browsed the internet and searched trough 
 mailinglist archives, but nowhere have I found a way to make restore 
 assume that the answer to the question should be 'yes'. I have come 
 across a few patches floating around that is supposed to fix this, 
 but I would prefer not to use patches against the base system.
 
   I know that there are other utilities available that could 
 probably do this, but Ive been teached that you should always use 
 dump when doing full backups of the root filesystem, and Im also 
 comfortable using dump and restore so I would like to continue to do 
 so if possible.
 
 Any ideas or suggestions?
 
 --
 R
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: running restore non-interactive

2005-01-21 Thread Roger 'Rocky' Vetterberg
Ruben de Groot wrote:
On Mon, Jan 17, 2005 at 02:11:34PM +0100, Roger 'Rocky' Vetterberg typed:
Hi list.
 Im trying to setup a machine to mirror its entire drive using 
dump/restore to a secondary drive.
The dump works fine, but at the end of each session, restore always 
asks set owner/mode for '.'?. This makes it impossible to automate 
the task, which is what I would to accomplish.

What exact commands are you using? I have scripts doing 

cd /mnt/drive2/partitionX
dump 0aLf - /partitionX | restore rf -
without being asked anything.
I was using 'restore xf -', but after reading the manpage again I see 
that using -r like you do is the way to go.
Unbelievable that noone else has noticed this, there are hundreds of 
posts on the internet discussing this very issue.

Many thanks, you just saved me a lot of trouble!
--
R
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


running restore non-interactive

2005-01-17 Thread Roger 'Rocky' Vetterberg
Hi list.
  Im trying to setup a machine to mirror its entire drive using 
dump/restore to a secondary drive.
The dump works fine, but at the end of each session, restore always 
asks set owner/mode for '.'?. This makes it impossible to automate 
the task, which is what I would to accomplish.
I have read the man-page, browsed the internet and searched trough 
mailinglist archives, but nowhere have I found a way to make restore 
assume that the answer to the question should be 'yes'. I have come 
across a few patches floating around that is supposed to fix this, 
but I would prefer not to use patches against the base system.

  I know that there are other utilities available that could 
probably do this, but Ive been teached that you should always use 
dump when doing full backups of the root filesystem, and Im also 
comfortable using dump and restore so I would like to continue to do 
so if possible.

Any ideas or suggestions?
--
R
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]