<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 11, 2015 at 2:07 PM, Narcis Garcia <span dir="ltr"><<a href="mailto:informatica@actiu.net" target="_blank">informatica@actiu.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Why is a snapshot better with database services?<br>
(time matter apart)<br>
<br></blockquote><div><br></div><div>That question is better suited for relevant db list/forum/support. Googling "database backup inconsistent" should give you good reference (add "mysql" or whatever db you use for more db-specific results).</div><div><br></div><div>Short version, copying files take a long time. Some files can be copied early, while others can be copied some time later (e.g. several minutes or hours later). If the database files are modified (e.g. you have an insert query) during the copy operation, the db will most likely be corrupted. Oracle should be able to work around this when runnning archivelog mode, other db may not be able to.</div><div><br></div><div>Snapshot is different. All files in a snapshot can be seen as a "copy" result taken entirely at the same, so there is no issue of "database files modified during copy operation", since the "copy" process is instaneous. This would result in the same state as if the server suddenly experience a crash or power loss, and most dbs can recover cleanly from that condition.</div><div><br></div><div>-- </div><div>Fajar</div><div><br></div><div><br></div></div></div></div>