<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Tu connais la possibilité de refaire ce qui est dans le log ?
(Fait un backup avant !)<br>
</p>
<blockquote>
<p><a moz-do-not-send="true"
href="https://lists.gnucash.org/docs/C/gnucash-guide/basics-backup1.html">https://lists.gnucash.org/docs/C/gnucash-guide/basics-backup1.html</a><br>
</p>
</blockquote>
<blockquote>
<h3 class="title">2.6.2. Log file (.log)</h3>
<p>Each time you open and edit a file in <strong
class="application"><code>GnuCash</code></strong>, <strong
class="application"><code>GnuCash</code></strong> creates a
log file of changes you have made to your data file. The log
file uses a similar naming format as the backup files: <code
class="filename">.YYYYMMDDHHMMSS.log</code>. Log files are not
a full backup of your data file - they simply record changes you
have made to the data file in the current <strong
class="application"><code>GnuCash</code></strong> session.</p>
<p>In case you exit <strong class="application"><code>GnuCash</code></strong>
inadvertently, possibly due to a power outage or a system wide
crash, it is possible to recover most of your work since the
last time you saved your <strong class="application"><code>GnuCash</code></strong>
file using this log file. This is the procedure:</p>
<div class="orderedlist">
<ol class="orderedlist" type="1">
<li class="listitem">
<p>Open the last saved <strong class="application"><code>GnuCash</code></strong>
file.</p>
</li>
<li class="listitem">
<p>Go to <span class="guimenu"><strong>File</strong></span>
→ <span class="guisubmenu"><strong>Import</strong></span>
→ <span class="guimenuitem"><strong>Replay GnuCash .log
file</strong></span> and select the one .log file with
the same date as the saved file you just opened. Make sure
that you picked the right .log file, or you will possibly
wreak havoc in your accounts.</p>
</li>
</ol>
</div>
<p>Log replaying will recover any transaction affecting the
balance entered since the last save, including those created
from scheduled transactions and business features (invoices,
bills, etc.).</p>
<div class="warning" style="margin-left: 0.5in; margin-right:
0.5in;">
<table border="0">
<tbody>
<tr>
<td rowspan="2" width="25" align="center" valign="top"><img
src="https://lists.gnucash.org/docs/C/gnucash-guide/stylesheet/warning.png"></td>
<th align="left" valign="top">Warning</th>
</tr>
<tr>
<td colspan="2" align="left" valign="top">
<p>Changes to the scheduled transactions, invoices or
bills themselves are NOT recovered, and their
transactions that were recovered may not be properly
associated with them, and should thus be
double-checked. Especially for business transactions,
you may have to delete and re-create some of them. If
you do not, although the balance will be correct, some
reports may not.</p>
</td>
</tr>
</tbody>
</table>
</div>
</blockquote>
<br>
Jeff<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 25/01/18 16:38, François
Désesquelles wrote:<br>
</div>
<blockquote type="cite"
cite="mid:e6bce15e-fa6e-4068-5f09-89abba9007e4@free.fr">Bonjour,
<br>
<br>
J'utilise gnucash pour la compta d'une petite association
sportive. La dernière fois que je l'ai utilisé j'ai effacé les
fichiers log et gnucash créés automatiquement (je sais ce n'est
pas bien mais j'avais pris cette habitude pour ne pas surcharger
le répertoire contenant le fichier). Lorsque j'ai réouvert gnucash
je me suis retrouvé avec les soldes de tous les comptes à 0€ et
tous les comptes vides comme s'il n'y avait jamais eu
d'opérations. La taille du fichier semble pourtant normale,
environ 190-200ko. Comme j'ai des sauvegardes régulières j'ai
récupéré le fichier précédent et je n'ai perdu "que" quelques
heures.
<br>
Ma question est la suivante : est-il possible de "réparer" le
fichier qui semble corrompu ou dois-je me faire une raison et
considérer que c'est impossible?
<br>
Je suis tout disposé à fournir le fichier en question pour
l'étudier si besoin il suffira de m'indiquer une adresse mail où
l'envoyer pour ne pas surcharger la liste.
<br>
<br>
Merci d'avance
<br>
François
<br>
_______________________________________________
<br>
gnucash-fr mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:gnucash-fr@gnucash.org">gnucash-fr@gnucash.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.gnucash.org/mailman/listinfo/gnucash-fr">https://lists.gnucash.org/mailman/listinfo/gnucash-fr</a>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jeff Abrahamson
+33 6 24 40 01 57
+44 7920 594 255
<a class="moz-txt-link-freetext" href="http://p27.eu/jeff/">http://p27.eu/jeff/</a>
</pre>
</body>
</html>