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


TSG-17 Signal Generator 100kHz-150MHZ RF/AM Radio Frequency Signal Generator NEW picture

TSG-17 Signal Generator 100kHz-150MHZ RF/AM Radio Frequency Signal Generator NEW

$78.80



RF Radio Frequency Cautery High Electro Electrosurgery Surgical Generator Set picture

RF Radio Frequency Cautery High Electro Electrosurgery Surgical Generator Set

$299.00



MATRIX SYSTEMS SWITCH RADIO FREQUENCY MFR/PN 7705DRRIS picture

MATRIX SYSTEMS SWITCH RADIO FREQUENCY MFR/PN 7705DRRIS

$299.00



RF Radio Frequency Cautery 3.5 Mhz High Electro Surgical Generator Set picture

RF Radio Frequency Cautery 3.5 Mhz High Electro Surgical Generator Set

$461.75



Lot of 50 HDW-IMP-80 Imprivata RF IDEAS Radio Frequency Proximity Reader picture

Lot of 50 HDW-IMP-80 Imprivata RF IDEAS Radio Frequency Proximity Reader

$489.99



PROTEUS EP-2000 Electrolysis Radio Frequency Epilator. picture

PROTEUS EP-2000 Electrolysis Radio Frequency Epilator.

$300.00







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