Performing a backup without going through Voyager The backup of the IPSO configurations via the Voyager web interface is no more than a tar and gzip of the following directories:
- /config
- /var/etc
- /var/cron
The following shell script can be executed via cron to back up the IPSO configuration on a regular basis:
------------------- CUT HERE ------------------------------#!/bin/sh## DESCRIPTION# IPSO_config_backup.sh# This script backs up the Nokia IPSO OS configurations.ARCHIVEDIR="/var/backup"BACKUPDIRS="config var/etc var/cron"DATE=`/bin/date +%y%m%d`HOSTNAME=`hostname`FILENAME=$HOSTNAME-$DATE# Clean up the backup archive directory first.# We don't want any config older than 3 months.cd $ARCHIVEDIRfind . -mtime +90 -exec rm {} \;# OK let's tar up the directories and gzip them.cd /tar cvf $ARCHIVEDIR/$FILENAME $BACKUPDIRS > /dev/null 2>&1gzip /var/backup/$FILENAMEmv $ARCHIVEDIR/$FILENAME.gz $ARCHIVEDIR/$FILENAMEchmod 644 $ARCHIVEDIR/$FILENAME
--
PhoneBoy - 01 Jan 2004
FAQForm FAQs.Class: FAQs.OS:
OsNokiaIPSO FAQs.Version: