BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-23-2007, 10:20 AM   #1
alwayzurboy
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: palm beach
Model: 8300
Carrier: cingular
Posts: 68
Default Database Backup...and restore. how?

Please Login to Remove!

can someone tell me or send me a link on how to Backup BES?

can i do mssql dumps and put them on another BES server for backup?

thanks a bunch, i need to get this going before next monday.
Offline  
Old 05-23-2007, 10:43 AM   #2
65shelby
Knows Where the Search Button Is
 
Join Date: Apr 2007
Model: 8700
PIN: N/A
Carrier: Cingular
Posts: 30
Default

Running MSSQL?

You should have a maintenance job running on your SQL server that backups up your database already. If you have access to it. Verify the days and times it backups up. You should be already covered. If not, you are exposing yourself to some serious risks. The DB is BESMgmt.DB
Offline  
Old 05-23-2007, 11:11 AM   #3
alwayzurboy
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: palm beach
Model: 8300
Carrier: cingular
Posts: 68
Default

if i was to use nt backup to create a backup file, where would the location be or should if be the entire mssql server folder under program files?

Would it be safe to say that i can install BES on another server, take the services offline and restore the backup to the server and it should be ready to be tested?


btw, my database lives on the same machine with BES

Last edited by alwayzurboy; 05-23-2007 at 11:19 AM..
Offline  
Old 05-23-2007, 11:22 AM   #4
65shelby
Knows Where the Search Button Is
 
Join Date: Apr 2007
Model: 8700
PIN: N/A
Carrier: Cingular
Posts: 30
Default

Quote:
Originally Posted by alwayzurboy View Post
if i was to use nt backup to create a backup file, where would the location be or should if be the entire mssql server folder under program files?

Would it be safe to say that i can install BES on another server, take the services offline and restore the backup to the server and it should be ready to be tested?


btw, my database lives on the same machine with BES
Run a SQL backup if you are using SQL or from a SQL server, connect to your BES server and run a backup from there. You can change the DB location once you save it.

It sounds like you want to do a knife edge cutover.

Once the db is backed up. Then bring up the new BES server and restore the DB. You also need to back up the config files so you don't need to recreate the wheel.
Offline  
Old 05-23-2007, 11:28 AM   #5
alwayzurboy
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: palm beach
Model: 8300
Carrier: cingular
Posts: 68
Default

just curious, can i install SQL express on the backup server and do replication of the mssql database on the main server?

next, where are the configs located. i dont mind going thru the whole thing again configuring the backup.

Im trying to secure my job here, lol
Offline  
Old 07-02-2007, 10:05 AM   #6
alwayzurboy
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: palm beach
Model: 8300
Carrier: cingular
Posts: 68
Default

can someone possibly gimme some help with this, where should i start first?
Offline  
Old 07-02-2007, 10:15 AM   #7
DarthBBerry
Wireless Sith Lord
 
DarthBBerry's Avatar
 
Join Date: Jan 2007
Location: Online
Model: iOS 6
Carrier: Verizon x2
Posts: 1,458
Default

BACKUP DATABASE
If you are using a full Microsoft SQL Server, follow the steps below:
  1. Open Enterprise Manager.
  2. Right-click the BlackBerry Configuration Database (the default name is BESMgmt).
  3. Select Backup Database.
  4. Click Add to specify the Directory Name and File Name. Click OK to accept the settings.
  5. Click OK to perform the backup.
  6. Close Enterprise Manager.
If you are using a Microsoft SQL Server Desktop Engine (MSDE), follow the steps below:
  1. Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
    osql -E -S <server_name>\<instance_name>
  2. Type the following commands in the specified order: 1> backup database <database_name> to disk = "C:\<database_name>.bak"
    2> go
    1> quit
  3. Close the command prompt.
RESTORE the BlackBerry Configuration Database
Use one of the following methods to restore the BlackBerry Configuration Database:
Method 1 - Back up and Restore the BlackBerry Configuration Database (on an SQL Server with the same directory structure)
Complete the following steps:
  1. Copy the BlackBerry Configuration Database backup to the C:\ path of the new SQL Server.
  2. Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
    osql -E -S <server_name>\<instance_name>
  3. Type the following commands in the specified order: 1> restore database <database_name> from disk = "c:\<database_name>.bak" with recovery,replace
    2> go
    1> quit
  4. Close the command prompt.
Method 2 - Backup and Restore the BlackBerry Configuration Database (on an SQL Server with a different directory structure)
Complete the following steps:
  1. Copy the BlackBerry Configuration Database backup to the C:\ path of the new SQL Server.
  2. Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
    osql -E -S <server_name>\<instance_name>
  3. Type the following commands in the specified order: 1> restore database <database_name> from disk = "c:\<database_name>.bak" with move "<database_name>" to "<new_path>\MSSQL\Data\<database_name>.mdf", move "<database_name>_log" to "<new_path>\MSSQL\Data\<database_name>.ldf"
    2> go
    1> quit
  4. Close the command prompt.
Method 3 - Detach and Re-attach the BlackBerry Configuration Database
Perform the following steps:
Step 1 - Stop the BlackBerry Services
  1. Open the Windows Services. To do this, go to the Control Panel and open Administrative Tools>Services.
  2. Stop each service that has a name that begins with BlackBerry.
Step 2 - Move the BlackBerry Configuration Database files to the new SQL Server
If you are using full SQL Server, complete the following:
  1. Log in to the original SQL Server.
  2. Open Enterprise Manager.
  3. Right-click the BlackBerry Configuration Database.
  4. Select All Tasks and click Detach Database.
  5. Close Enterprise Manager.
  6. Navigate to the SQL Data directory and make a copy of the MDF and LDF files. The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\ and the default filenames are BESMgmt.mdf and BESMgmt.ldf.
  7. Move the file copies to the new SQL Server.
  8. Log in to the new SQL Server.
  9. Open Enterprise Manager.
  10. Right-click the BlackBerry Configuration Database.
  11. Select All Tasks and click Detach Database.
  12. Move the files you copied in step 6 into the SQL Data directory. When prompted to overwrite the files, click Yes.
  13. In Enterprise Manager, right-click the Database folder and click All Tasks.
  14. Select Attach Database.
  15. Select the MDF file to attach and click OK.
  16. Close Enterprise Manager.
If you are using MSDE, complete the following:
  1. Log in to the first MSDE Server.
  2. Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
    osql -E -S <server_name>\<instance_name>
  3. Type the following commands in the specified order: 1> exec sp_detach_db @dbname = "<database_name>"
    2> go
    1> quit
  4. Navigate to the SQL Data directory and make a copy of the MDF and LDF files. The default path is C:\Program Files\Microsoft SQL Server\MSSQL\Data\ and the default filenames are BESMgmt.mdf and BESMgmt.ldf.
  5. Move the file copies to the new SQL Server.
  6. Log in to the new MSDE Server.
  7. Type osql -E at a command prompt.

    Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
    osql -E -S <server_name>\<instance_name>
  8. Type the following commands in the specified order: 1> exec sp_detach_db @dbname = "<database_name>"
    2> go
    2> quit
    Move the files you copied in step 4 into the SQL Data directory. When prompted to overwrite the files, click Yes.
  9. Type osql -E at a command prompt. Note: If you are logging in to a named instance of SQL Server, use the following command syntax to log in:
    osql -E -S <server_name>\<instance_name>
  10. Type the following commands in the specified order: 1> exec sp_attach_db @dbname = "<database_name>",
    2> @filename1 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\<database_name>.mdf",
    3> @filename2 = "C:\Program Files\Microsoft SQL Server\MSSQL\Data\<database_name>.ldf"
    4> go
    1> quit
  11. Close the command prompt.
All of this is a cut-n-paste from Blackberry.com
Try searching dude. *sheesh*
__________________
DarthBBerry
6-Time BlackBerry World Champion (2007-2012)
BlackBerry® Certified Support Specialist v5.0
BlackBerry® Certified System Administrator v5.0
Offline  
Old 07-02-2007, 11:20 AM   #8
hdawg
BlackBerry Genius
 
hdawg's Avatar
 
Join Date: Aug 2006
Model: hdawg
PIN: port3101.org
Carrier: hdawg
Posts: 6,632
Default

CUT AND PASTE??? I thought you typed out the whole thing and was just going to give you a cookie for the effort
Offline  
Old 07-03-2007, 07:24 AM   #9
DarthBBerry
Wireless Sith Lord
 
DarthBBerry's Avatar
 
Join Date: Jan 2007
Location: Online
Model: iOS 6
Carrier: Verizon x2
Posts: 1,458
Default

Quote:
Originally Posted by hdawg View Post
CUT AND PASTE??? I thought you typed out the whole thing and was just going to give you a cookie for the effort
/flex
__________________
DarthBBerry
6-Time BlackBerry World Champion (2007-2012)
BlackBerry® Certified Support Specialist v5.0
BlackBerry® Certified System Administrator v5.0
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


Festo Solenoid Valve VUVG-L10-M52-RT-M5-1P3 picture

Festo Solenoid Valve VUVG-L10-M52-RT-M5-1P3

$35.00



DORMEYER 2005-M-1 Solenoid,Laminated,1/8 - 1 in,Continuous picture

DORMEYER 2005-M-1 Solenoid,Laminated,1/8 - 1 in,Continuous

$37.87



SMC Pneumatic Solenoid Valve 24 VDC Cat SY7120-5M0-02 picture

SMC Pneumatic Solenoid Valve 24 VDC Cat SY7120-5M0-02

$30.00



Numatics Pneumatic Solenoid Valve Cat No. 152SS500M picture

Numatics Pneumatic Solenoid Valve Cat No. 152SS500M

$60.00



6669415 Fuel Timer Solenoid Bobcat Skid Steer Loader Excavator Compatible picture

6669415 Fuel Timer Solenoid Bobcat Skid Steer Loader Excavator Compatible

$34.99



YM-119653-77950 1503ES-12S5SUC5S Fuel Shutoff Solenoid Fits Yanmar 2TNV70 3TNE88 picture

YM-119653-77950 1503ES-12S5SUC5S Fuel Shutoff Solenoid Fits Yanmar 2TNV70 3TNE88

$19.99







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