Data maintenance, Manual backup and restore, Periodic automated backup – AASTRA BluStar 8000i BAS-Mode Administrator Guides EN User Manual

Page 145

Advertising
background image

Data Maintenance

41-001391-00 Rev 03 – 04.2012

10-2

Data Maintenance

The following maintenance tasks need to be considered for the database:

Manual backup and restore

Periodic automatic backup

Offserver backup

Debugger

Database failures

Manual Backup and Restore

The administrator can manually initiate creating a backup file by entering vipr_backup_db filename, for example enter:

vipr_backup_db /tmp/db-before-move

To delete all information in the database and restore the database contents from a backup file, first stop all BAS services by
entering vipr_stop_services, then enter vipr_restore_db filename, for example:

vipr_restore_db /tmp/db-svr1

After the database contents are restored, enter vipr_start_services to restart all BAS services.

To merge the contents from a backup file with the information in a database, enter vipr_merge_db filename, for exam-
ple:

vipr_merge_db /tmp/db-svr1

If the backup file contains the similar information as already in the database, conflicts will occur or duplicate entries will be
generated.

Periodic Automated Backup

The BluStar system backs up the database every day at the time specified during configuration for the offserver backup.
Seven days' worth of backups are kept in the directory /var/backup. The file names include the day of the week on which
the backup was made. To delete the entire contents of the BluStar database and restore a backup, first stop all BAS services
by entering vipr_stop_services, then enter:

vipr_restore_db /var/backup/db-Xxx.gz

where Xxx is the capitalized three letter English abbreviation for the day of the week of the most recent backup (e.g. Tue).

After the database contents are restored, enter vipr_start_services to restart all BAS services.

To copy one of these database backup files to a remote server, enter a command like:

scp /var/backup/db-Tue.gz user@server:/backupdir3

Note:

Restoring a database backup will cause ALL information written to the database since the backup was made to be irre-
trievably lost, and will result in temporary unavailability of some system services. Information such as: server configu-
ration, user accounts, user settings, or contacts could be lost

Advertising