Article View: pl.comp.lang.delphi.bazy-danych
Article #70135Re: firebird embed i backup
From: Skomoroch
Date: Tue, 19 Jun 2007 11:46
Date: Tue, 19 Jun 2007 11:46
54 lines
2382 bytes
2382 bytes
Użytkownik "Morff" <morff1@wp.pl> napisał w wiadomości
news:op.ttuxl5o2q0kutt@xp_januszk.herby...
> Dnia 12-06-2007 o 23:34:59 Ys <postmaster@microsoft.com> napisał:
>
>> A jakiś przykład jak tego dokonać można zobaczyć ?
>>
>> Pozdrawiam
>
>
> ibdb1.Connected:=false; //rozlączenie
>
> ibbackup.backupfile.append('kopia.bkp');
> ibbackup.database:='baza.fdb';
> ibbackup.protocol:=local;
>
> ibrestore.backupfile.append('kopia.bkp');
> ibrestore.database:='baza.fdb';
> ibrestore.protocol:=local;
>
> ibbackup.Active:=true;
> ibbackup.ServiceStart;
>
> while ibbackup.IsServiceRunning do
> application.ProcessMessages;
>
> ibbackup.Active:=false;
>
> ibrestore.Active:=true;
> ibrestore.ServiceStart;
>
> while ibrestore.IsServiceRunning do
> application.ProcessMessages;
>
> ibrestore.Active:=false;
>
> deletefile('kopia.bkp');
> //application.Terminate;
> end;
>
> stare .... ale działa (delphi7 + fb2emb)
>
> --
> Pozdrawiam
> Morff
> --------------------
> AQQ 141151
Dzięki. Pomogło.
Winę ponoszę oczywiście ja przez wrodzoną ślepotę :)
Zmieniłem tylko protokół na LOCAL i backupuje aż miło :)
Pozdrawiam
YS
Technical Details
Message-ID:
<f58g00$gt8$1@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<f4n0a1$kvn$1@atlantis.news.tpi.pl> <op.tttunbl7q0kutt@xp_januszk.wag54gs> <f4n3jn$71d$1@atlantis.news.tpi.pl> <op.ttuxl5o2q0kutt@xp_januszk.herby>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: "Skomoroch" <abuse@microsoft.pl> Newsgroups: pl.comp.lang.delphi.bazy-danych Subject: Re: firebird embed i backup Date: Tue, 19 Jun 2007 13:46:44 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 56 Message-ID: <f58g00$gt8$1@nemesis.news.tpi.pl> References: <f4n0a1$kvn$1@atlantis.news.tpi.pl> <op.tttunbl7q0kutt@xp_januszk.wag54gs> <f4n3jn$71d$1@atlantis.news.tpi.pl> <op.ttuxl5o2q0kutt@xp_januszk.herby> NNTP-Posting-Host: brm62.neoplus.adsl.tpnet.pl X-Trace: nemesis.news.tpi.pl 1182253888 17320 83.29.106.62 (19 Jun 2007 11:51:28 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Tue, 19 Jun 2007 11:51:28 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Antivirus: avast! (VPS 000750-1, 2007-06-18), Outbound message X-Antivirus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit