Novell Home

Incremental GroupWise Database Backups

Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

How to use a shell to backup GroupWise databases.

Vitals

Product Categories:
  • GroupWise
  • Functional Categories:
  • Backup/Restore
  • Workgroup
  • Posted:1 Oct 2007
    File Size:1KB each
    License:Free
    Download:download files below
    Publisher:Todd W. Carter

    Disclaimer

    Please read the note from our friends in legal before using this file.


    Details

    Downloads:

    I was working on a project to replicate all user data from 22 school sites into one central storage server, using RSYNC and replicating to a SLES 10 OES2 server.

    I thought while I was at it I would replicate my GroupWise databases at the same time, providing an off-site backup.

    I decided to use DBCOPY to backup the the data. However, without using the /I switch, DBCOPY would backup the entire database when all I wanted was new data to be backed up each night. Also, I wanted to automate the process with CRON so it would run unattended.

    But how does one set a new paramenter for a switch in NetWare, which is the OS for my GroupWise system?

    I finally realized that I could set a variable for DATE in a BASH shell, and then run DBCOPY using the /i $DATE switch which makes DBCOPY do an incremental backup. I then wrote the attached scripts, one for the Domain, and one for each Post Office. I schedule them to run at separate times in CRONTAB by calling BASH /path/to/script. This avoids having multiple instances of DBCOPY running at the same time and provides me with current data to RSYNC from the backup directory.

    Here are sample crontab entries:

    0 19 * * * bash sys:/etc/dombkup.sh
    30 19 * * * bash sys:/etc/distbkup.sh
    30 20 * * * bash sys:/etc/mainbkup.sh
    0 2 * * * sys:/rsync/domainbu.ncf
    15 2 * * * sys:/rsync/mainbu.ncf
    0 4 * * * sys:/rsync/distbu.ncf

    The NCF files are simple RSYNC commands as documented in Cool Solutions that send the data to the SLES server.

    Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

    © 2014 Novell