<div dir="ltr"><div class="gmail_default" style="font-size:small">Does anyone have any objections to checking in the Autosave Backup code to GIT?  Does it seem to be safe enough?  I know Andrew had suggested to "test with caution" so is there any concern?  I have not encountered any anomalies in my tests and you know I always log in as root.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 10, 2021 at 1:51 AM Andrea paz via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I was thinking of adding a section in the manual about how backup<br>
works in CinGG.<br>
Please correct me if I am wrong:<br>
if I don't enable the new option (default), a backup is created at<br>
each editing action (see below the list of actions suggested by<br>
Andràs) but this overwrites the previous backup.prev so in .bcast5<br>
there will be only one backup file (plus backup.xml whose function I<br>
don't understand). The same when we manually create a backup via File<br>
--> save backup. When we make a File --> Load backup, in addition to<br>
bring on the timeline the backup.prev we also create a new<br>
backup.prev.<br>
<br>
If I enable "Autosaves continuous backups" the backup.prev file is not<br>
overwritten, but a new backup.prev_xxxxxxxx_xxxxxx (with data and<br>
clock time) is created. These are small files so their number is not a<br>
problem. In any case when you exit CinGG the various backups are<br>
deleted except for the last 50, which will still be available at the<br>
next restart. The new option is put in Settings --> Preferences --><br>
Appearance Tab under the Dangerous section because if you have a crash<br>
or anyway you don't exit CinGG correctly, the delete phase doesn't<br>
happen and the risk is the increase of the backup files inside .bcast5<br>
but, as said, their size is very small and so not a big problem.<br>
With this option enabled, how does File --> save/load backup work?<br>
Is there anything I didn't understand? Is there anything to add?<br>
<br>
<br>
<br>
There are a few parts where save_backup() is called (Reuss Andràs):<br>
<br>
cinelerra/cwindowgui.C:2<br>
cinelerra/swindow.C:1<br>
cinelerra/keyframepopup.C:2<br>
cinelerra/pluginpopup.C:1<br>
cinelerra/mwindowedit.C:87<br>
cinelerra/presetsgui.C.sav1:1<br>
cinelerra/assetpopup.C:1<br>
cinelerra/cwindowtool.C:1<br>
cinelerra/render.C:1<br>
cinelerra/setformat.C:1<br>
cinelerra/mwindow.C:9<br>
cinelerra/keyframegui.C:2<br>
cinelerra/mwindowgui.C:1<br>
cinelerra/mainmenu.C:1<br>
cinelerra/loadfile.C:2<br>
cinelerra/savefile.C:2<br>
cinelerra/menueffects.C:1<br>
cinelerra/main.C:1<br>
cinelerra/presetsgui.C.sav:1<br>
cinelerra/record.C:1<br>
cinelerra/plugindialog.C:1<br>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>