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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate shutdown then ufsdump procedure 2

Status
Not open for further replies.

cgswong

MIS
Nov 27, 2000
202
US
Hi all, I was wondering if there was a way to use 'shutdown' to bring the system down to single user mode in order to do a full dump of all filesystems automatically. Currently I just use ufsdump in multi-user mode but I make sure no users are using the system. What I would like to do is add 'shutdown -y -g10 -i6' to my backup script so that the system goes to single user mode and then does a full system dump all by itself.

Also, how do I get ufsdump to wait for me (indefinately, like cpio) to change tapes instead of timing out? Right now it waits awhile (I assume as I wasn't there) and then just ends, the next line(s) in the script is executed and a full backup does not get done.

Please help, any suggestions are appreciated. Thanks in advance.

- Stuart
 
for ufsdump we only shutdown to single user mode when doing a level 0 dump ...

and we back up all other levels 1-5 monday-friday at night when noone is using the system (system files rarely change hence the need for level 1 at init S, whereas datafiles change daily)

despite all the warnings this works very well for us, and means a minimum of intervention at all sites with tape drives.
 
Thanks for your comments Jad, but they didn't answer my question. I need to know the follwoing:

1> Is possible to automate (via script) bringing the system to single user mode (shutdown -y -g 10 -i S), and then running ufsdump.

2> How to make ufsdump wait indefinately for me to change tapes. I currently use 'ufsdump 0lubf 512 /dev/rmt/0cn <filsystem>'

3> Is it possible to increase the block size to say 4MB?

Thanks.

- Stuart
 
1 - no ... it'll always prompt for a password.

2 - don't use the l option, it will keep prompting forever if you don't specify a time out.

3 - why? the tape drive should autodetect the size, length and breadth of the tape, and work on it it the fastest way it can
 
Thanks for the response, I really appreciate it.

- Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top