Cisco Headend System Release 2.7 Installation Guide
Appendix C
Modify the Root crontab File for Automating Backups
Modify the Root crontab File for Automating Backups
36
OL-27573-01
Configure the File System Backup cron Script
1 Use a text editor to open the /usr/local/backup_restore/FScron.sh file.
2 Insert the path to your backups storage area into the 'nfspath' variable.
3 Insert the hostname of your server into the 'your iDNCS' variable, or use the
2 Insert the path to your backups storage area into the 'nfspath' variable.
3 Insert the hostname of your server into the 'your iDNCS' variable, or use the
default.
Note: The your iDNCS variable is set to 'uname -n'. This will set the your iDNCS
variable to the current hostname of the system. You may leave it set this way or
change it to a name of your choice.
Note: The your iDNCS variable is set to 'uname -n'. This will set the your iDNCS
variable to the current hostname of the system. You may leave it set this way or
change it to a name of your choice.
4 Insert the number of backups to keep into the 'num_to_keep' variable, or use the
default.
5 Save and close the file.
Result: This results in backups written to /<path_to_storage>/<hostname>/FS/FS-
#.tar, where '#' is the backup number. At most, 'num_to_keep' backups will be
stored. After that number is reached, older backups are deleted.
Result: This results in backups written to /<path_to_storage>/<hostname>/FS/FS-
#.tar, where '#' is the backup number. At most, 'num_to_keep' backups will be
stored. After that number is reached, older backups are deleted.