Cisco Headend System Release 2.5 설치 가이드
Appendix C
Setting Up an Automated Database Backup
118
4036631 Rev B
Configure the DNCS for an Automatic Database
Backup
Copying the Backup/Restore Scripts to the DNCS
The system operator should follow these instructions to copy the backup and restore
scripts from the CD or DVD to the DNCS.
1 Insert the SR i4.2.2 DVD into the DVD drive of the DNCS.
2 Type cp -pr /cdrom/cdrom0/s3/backup_restore /usr/local and then press Enter.
scripts from the CD or DVD to the DNCS.
1 Insert the SR i4.2.2 DVD into the DVD drive of the DNCS.
2 Type cp -pr /cdrom/cdrom0/s3/backup_restore /usr/local and then press Enter.
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. The system redirects
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. The system redirects
the contents of the crontab into root.crontab.
Important: The 'l' in crontab -l is a lower case L.
Note: While you can edit the crontab directly, our engineers recommend that
you first redirect the contents of the crontab to root.crontab so you can recover
the original crontab if necessary.
Important: The 'l' in crontab -l is a lower case L.
Note: While you can edit the crontab directly, our engineers recommend 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. The system opens root.crontab
for editing using the UNIX vi editor.
4 Add the following lines to the end of root.crontab, depending upon your tape
drive configuration:
If you have a standard tape drive configuration, add the following to the end
of the root.crontab file:
#cron to automatically back up the database
0 2 * * * (. /dvs/dncs/bin/dncsSetup;
/usr/local/backup_restore/backupDatabase -n
of the root.crontab file:
#cron to automatically back up the database
0 2 * * * (. /dvs/dncs/bin/dncsSetup;
/usr/local/backup_restore/backupDatabase -n
If you have a custom tape drive configuration, add the following to the end
of the root.crontab file:
#cron to automatically back up the database
0 2 * * * (. /dvs/dncs/bin/dncsSetup;
/usr/local/backup_restore/backupDatabase -n -b [blocksize] -s [tapesize]
of the root.crontab file:
#cron to automatically back up the database
0 2 * * * (. /dvs/dncs/bin/dncsSetup;
/usr/local/backup_restore/backupDatabase -n -b [blocksize] -s [tapesize]
Note: This command will back up the DNCS database at 2 AM everyday. To