Vlad Khorsun <hv...@users.sourceforge.net> wrote Wed, 23 Mar 2016 17:43:23  
+0300:

>
>    Let me show how it works. It is very simplified example, of course.
>
> Create database source.fdb.
>
> Create level-0 backup, as usual:
>    nbackup -B 0 source.fdb source-0.nbk
>
> Restore level-0 backup, as usual:
>   nbackup -R target.fdb source-0.nbk

Why not combine these commands into one?
     backup -COPY source.fdb target.fdb

>
> Every N minutes:
> {
>    obtain backup GUID of target database:
>      gstat -h target.fdb | findstr /C:"Database backup GUID:"
>
>    create new incremental backup using GUID above:
>      nbackup -B {93070E3C-E63F-4FB3-B89A-10C732BDEAC3} source.fdb  
> source-inc.nbk
>
>    apply new increment to the target database:
>      nbackup -INPLACE -R target.fdb source-inc.nbk
> }
>

These commands can also be combined into one, such as
     nbackup -MERGE -DATABASE source.fdb target.fdb [-INCREMENT  
source-inc.nbk]

During the execution of this command, GUID could be read automatically  
 from target.fdb

-- 
Simonov Denis


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to