Cool Solutions

Merge GroupWise Backups Script



By:

November 19, 2008 10:14 am

Reads:7,581

Comments:1

Score:Unrated

License:
Free to a good home!

Download gwbkup.sh_

There were a lot of good bash scripts out there calling dbcopy but we needed a way to create a first time full and then merge our incremental into our full, thus one disaster recovery backup of our Post Office. This script will search your GroupWise Post Office backup directory and remove those files that have been deleted from the source PO directory then merge a incremental backup with dbcopy.

Set this script to run early in the morning. This way you reduce attempts to backup files that have already been backed up.

If you have comments let me know.

Chad

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading ... Loading ...


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

1 Comment

  1. By:hbree

    Hey ncisrael,

    I have modified your script to include a check to limit the size of the logfile.
    We don’t want the logfile to fill up our disks with years of history information right ?

    I’ve added a varialble

    tmplog=/var/log/gwbckup.tmp

    and then I do:

    # Checking logfilesize.
    RESULTS_SIZE=`stat -c %s $bcklog`
    if [ "$RESULTS_SIZE" -gt 10240 ];
    then
    echo "sizelimit in effect" >>$bcklog
    mv $bcklog $tmplog
    touch $bcklog
    echo "Logfile exceeded 10 MB Limit. Creating new logfile and transfer">>$bcklog
    echo "the last 10 lines from the old log to the new one">>$bcklog
    tail -n 10 $tmplog >>$bcklog
    fi

    and the end of the dbcopy command.

Comment

RSS