Tool
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
| Anhang | Größe |
|---|---|
| gwbkup.sh_.tar | 10 KB |
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
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, test, test before you do anything drastic with it.
Related Articles
User Comments
Modification to your script
Submitted by hbree on 14 September 2010 - 3:09am.
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.
- Be the first to comment! To leave a comment you need to Login or Register


1