Cisco Headend System Release 2.5 Installation Guide

Page of 280
78-738190-01 Rev B 
Setting Up an Automated Database Backup 
E-3 
Configure the DNCS for an Automatic Database Backup,
 Continued 
Edit the noinputDbBackup.sh File 
Follow these instructions to edit the noinputDbBackup.sh file so that it includes the 
correct tape drive device name. 
Note:  The xterm window that you opened in the previous procedure, Verifying the 
Tape Drive Device Name, should still be open. 
 
1. 
Type vi  /dvs/dncs/bin/noinputDbBackup.sh and then press Enter
Result:  The noinputDbBackup.sh opens for editing. 
2. 
Scroll down through the file and locate the line that begins with  
tapeDevice=/dev/rmt/0h
3. 
Edit the line so that it now references the device name you recorded in step 5 
of the Verifying the Tape Drive Device Name procedure, earlier in this 
appendix. 
Example:  tapeDevice=/dev/rmt/1h 
4. 
Save the file and close the vi editor. 
5. 
Go to Editing the crontab, next in this appendix. 
Editing the crontab 
Follow these instructions to configure your nightly backup of the Informix database 
on the DNCS. 
 
1. 
From an xterm window on the DNCS, log in as root user. 
2. 
Type crontab  -l  >  /tmp/root.crontab and then press Enter
Important:  The ‘l’ in crontab  -l is a lower case L. 
Result:  The system redirects the contents of the crontab into root.crontab. 
Note:  While you can edit the crontab directly, Cisco recommends that you 
first redirect the contents of the crontab to root.crontab so you can recover the 
original crontab if necessary. 
3. 
Type vi  /tmp/root.crontab and then press Enter
Result:  The system opens root.crontab for editing using the UNIX vi editor.