Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 4th, 2004, 06:25 AM
thomasj thomasj is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 10 thomasj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Backup individual tables in a database?

Is it possible to make a backup of individual tables in a Firebird 1.5 final database?
(Example backup only 1 table in a database with 5 tables).

Regards
Thomas

Reply With Quote
  #2  
Old May 4th, 2004, 12:31 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,173 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 24
From the Pros & Cons page:

Firebird will only backup and restore whole databases at a time.

From the Version 2.0 development page:

* Incremental backup, native monitoring features, engine plugins.

Reply With Quote
  #3  
Old May 6th, 2004, 03:12 PM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 274 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 12 m 34 sec
Reputation Power: 9
Lightbulb

Quote:
Originally Posted by thomasj
Is it possible to make a backup of individual tables in a Firebird 1.5 final database?
(Example backup only 1 table in a database with 5 tables).

Regards
Thomas


fbexport it could be used to this job
Quote:
What does it do?
With FBExport, one can easily export/import data from/to Firebird table into a text file (actually it's a binary file). I first tought that XML format would be the way to go, but size of exported file matters, so I used my own format which uses less space.

FBExport is a command-line tool, so you can easily use it inside batch scripts. Currently, Linux and Windows versions are available, but I hope it can be built with any compiler that can build IBPP library.

Why use it?
I was trying to copy data from one Firebird database to another via external tables. The whole import/export process was needed since there was no chance of getting access to both databases at the same time, so any of those data-pump utilities was out of the question. Thus, I came up with the idea to export data into text file, copy that file to other server, and import the data into other database.

Then I had problem with null values. When exporting data into external tables, database engine turns all null values into zeroes (hex value 0). When importing back, integers become zero, dates become 17.11.1858, etc. I also tried to use CHAR for all exporting, but then, null value for integer becomes " ", or something similar, and one gets error message: Conversion error from string " ".

Instead of writing some UDFs or a lot of Stored Procedures for each table, I decided to make a tool that will do this job...

and page where it can be downloaded http://fbexport.sourceforge.net/
__________________
My home page: http://www.firebirdsql.org and work place :http://www.reea.net

Reply With Quote
  #4  
Old May 11th, 2004, 03:45 PM
klemmo klemmo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 8 klemmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 21 m 37 sec
Reputation Power: 0
ibexpert can do all this for you
extract metadata works also with a commandline version called ibeextract.exe and you can define a template what table data should be extracted in an insert script, it also creates a file for blob data, that can be used with the other commandline tool ibescript.exe to execute this. as far as i know there are different plans for new backup restore features, but most of them for Firebird 2.


Best Regards
Holger Klemt

2.European Firebird Conference May 16th-18th Fulda,Germany
The most Expert for InterBase and Firebird-www.ibexpert.com
HK Software - Huntestrasse 15 - 26135 Oldenburg - Germany

Reply With Quote
  #5  
Old May 14th, 2004, 05:49 AM
thomasj thomasj is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 10 thomasj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Holger Klemt:

Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Backup individual tables in a database?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT