|
From: Jamie C. <jca...@we...> - 2018-11-13 13:15:06
|
The way webmin writes all config files is it creates another file in the same directory as the one being replaced, then renames it over the original file in a single operation. This prevents situations where writing to a file fails part-way through leading to an incomplete config. - Jamie On 12/Nov/2018 06:34 Marcus Frenkel <mar...@gm...> wrote .. Hello, Question to Webmin devs. I need to know how Webmin writes to BIND files when config or zone is modified from the GUI, specifically I'm interested for these files: 1. /etc/bind/named.conf.local 2. /var/lib/bind/* Does it modifies the file in place or it replaces the file with new one at once? We run rsync to backup these files. Normally, if the file is being written to, rsync will copy whatever data is there, no matter if the process of writing is not completed. If Webmin updates the files by modifying the file in couple of writes, the backup will contain incomplete files. Thank you in advance! |