Method of writing zone files

Matus UHLAR - fantomas uhlar at fantomas.sk
Tue Nov 13 12:07:12 UTC 2018


>On 12-Nov-18 14:39, Marcus Frenkel asked about backing up slave zone
>files & bind's update mechanism:

On 13.11.18 06:37, Timothe Litt wrote:
>I believe you're asking the wrong questions and are likely to run into
>complications.  You don't know when BIND will merge the journal, or that
>rsync will atomically snapshot the zone file and the journal.  So you
>will get a coherent copy of the the zone file - but it may be stale. 
>The journal may be earlier or later than the zone file, or it may be
>incomplete. This means that a restore  may have the slave serve stale
>data - until it queries the master for any updates & if necessary, fixes
>the journal file.  If the master happens to be down, this is especially
>suboptimal.
>
>So I would exclude both files from rsync, and use another approach to
>save a coherent copy of the zone file(s) in my backup procedure.

rndc freeze can cause all journals to be synced and files saved.
You can call this before backup and call rndc thaw after.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Linux IS user friendly, it's just selective who its friends are...


More information about the bind-users mailing list