BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-08-2006, 06:43 PM   #1
ThomasB
Knows Where the Search Button Is
 
Join Date: Sep 2005
Model: 8700r
Carrier: Rogers
Posts: 17
Default Database backup questions

Please Login to Remove!

We are changing our backup stratagey and will now need to use:

osql -E
backup database besmgmt to disk='c:\backup.bak'


1. Our database is about 100Meg and the backup ends up at about 12Meg.
We only have 8 users, is this reasonable.

2. The backup seems to append so that the fill grows by 12Meg each time.
Is there something I am missing.

I am sure it is something obvious I am missing and would appreciate any clues.

Tom
Offline  
Old 05-08-2006, 07:04 PM   #2
jibi
BlackBerry God
 
jibi's Avatar
 
Join Date: Oct 2004
Location: Jibi's Secret Place
Model: 8900
OS: 4.6.1.174
Carrier: AT&T
Posts: 11,310
Default

The database is automatically 100MB but when you export/back it up to a flat-file, the actual size is typically MUCH smaller than the default size. You may want to set up some sort of automated scheduling script to run a few hours after the download to zip up the .bak file, rename it to append the date to the .zip file and delete the original .bak file. It shouldn't append the database time and time again - you'd likely have a bad restore if it it came to that point.
__________________
In the beginning the Universe was created. This has made a lot of people very angry and is widely regarded as a bad move.
Offline  
Old 05-08-2006, 07:17 PM   #3
ThomasB
Knows Where the Search Button Is
 
Join Date: Sep 2005
Model: 8700r
Carrier: Rogers
Posts: 17
Default

Thanks!

I thought 100Meg was too big and 12Meg seemed more reasonable.

Is that normal for the backup to be appended?
If this is normal, I could just delete the previous backup just before running the scheduled job.


Thanks, Tom
Offline  
Old 05-08-2006, 09:10 PM   #4
jibi
BlackBerry God
 
jibi's Avatar
 
Join Date: Oct 2004
Location: Jibi's Secret Place
Model: 8900
OS: 4.6.1.174
Carrier: AT&T
Posts: 11,310
Default

Quote:
Originally Posted by ThomasB
Thanks!

I thought 100Meg was too big and 12Meg seemed more reasonable.

Is that normal for the backup to be appended?
If this is normal, I could just delete the previous backup just before running the scheduled job.


Thanks, Tom
i'd say to keep copies of it for atleast a week or two. never good to delete last night's backup if tonight's is bad, ya know? i honestly do not use that method of backing up, so i'm not sure - within SQL 2000's maintenance, it actually names the .bak file with the date.
__________________
In the beginning the Universe was created. This has made a lot of people very angry and is widely regarded as a bad move.
Offline  
Old 05-11-2006, 07:52 AM   #5
Max_MBit
Knows Where the Search Button Is
 
Join Date: Jan 2006
Model: 9800
Carrier: T-Mobile
Posts: 31
Default

Hi ThomasB,

Had the same problems you are encountering with the backup being appended.

I have solved the problem as follows:

1. Make a batch file with the following content:

osql -E -i backupbesmgmt.sql -o e:\sql_backup\backup.log

2. Create a text file called backupbesmgmt.sql containing the following:

backup database besmgmt to disk='E:\sql_backup\backup.bak' WITH INIT;

go

3. Schedule the task to run the batch at whatever interval required and you will have an backup which is almost identical in size to your productive DB. (You will have to modify the paths identified above to reflect those of your system)
Offline  
Old 05-16-2006, 09:35 PM   #6
idontknow
Thumbs Must Hurt
 
Join Date: Aug 2005
Model: 6230
Posts: 74
Default

Default size of the BESMgmt db is 100 meg. I would not change this as its a perfectly reasonalbe size. When you have 100 users an a 10 gig transaction log, then you should be concerned.

More information on database backup maintenance: Shrink the transaction log
http://www.blackberry.com/knowledgec...?nodeid=832031

Again, with a db of only 100 meg, I would not worry at all.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM IBM Selectric II Key Tops & Parts picture

OEM IBM Selectric II Key Tops & Parts

$49.95



Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM picture

Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM

$12.00



New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks picture

New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks

$14.99



Certified OEM IBM Wheelwriter models 3 & 5 LCD Panel & cable assembly picture

Certified OEM IBM Wheelwriter models 3 & 5 LCD Panel & cable assembly

$10.00



OEM  IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working picture

OEM IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working

$49.99



IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259 picture

IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259

$24.79







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.