RW
Roger Whiteley
Thu, Oct 22, 2026 4:46 PM
Question for the dev team,
I regularly have multiple files open whilst I work on a design, pressing
F5 to render generates a saved backup file in .local/share/OpenSCAD/backups.
These file take the form <scadfilename-one>-backup-randomalphastring.scad.
If I hit F5 whilst viewing scadfilename-two, the saved backup is stored
as scadfilename-one-backup-randomalphastring.scad.
If I hit F5 whilst viewing scadfilename-three, the saved backup is
stored as scadfilename-one-backup-randomalphastring.scad.
Having a backup file is good, but why does the saved backup seem to take
the name of the first file open in an editing session?.
Perhaps it doesn't matter under many scenarios, but I recently had to
use the red switch to terminate a frozen Debian12 desktop, which then
refused to ever restart, resulting in a total rebuild and restore, with
associated data loss :-(.
Saved backups with the correct scad filename would have helped -
although the freeze was really self inflicted :-(.
Backup filename persistence across F5 and multiple scad files seems like
a bug, rather than a feature, it is present in OpenSCAD v2021.01
[installed via apt] and OpenSCAD version 2026.07.07 (git 1f65580cb).
Bug or feature?
many thanks
Roger.
Question for the dev team,
I regularly have multiple files open whilst I work on a design, pressing
F5 to render generates a saved backup file in .local/share/OpenSCAD/backups.
These file take the form <scadfilename-one>-backup-randomalphastring.scad.
If I hit F5 whilst viewing scadfilename-two, the saved backup is stored
as scadfilename-one-backup-randomalphastring.scad.
If I hit F5 whilst viewing scadfilename-three, the saved backup is
stored as scadfilename-one-backup-randomalphastring.scad.
Having a backup file is good, but why does the saved backup seem to take
the name of the first file open in an editing session?.
Perhaps it doesn't matter under many scenarios, but I recently had to
use the red switch to terminate a frozen Debian12 desktop, which then
refused to ever restart, resulting in a total rebuild and restore, with
associated data loss :-(.
Saved backups with the correct scad filename would have helped -
although the freeze was really self inflicted :-(.
Backup filename persistence across F5 and multiple scad files seems like
a bug, rather than a feature, it is present in OpenSCAD v2021.01
[installed via apt] and OpenSCAD version 2026.07.07 (git 1f65580cb).
Bug or feature?
many thanks
Roger.
JB
Jordan Brown
Thu, Oct 22, 2026 8:59 PM
On 10/22/2026 9:46 AM, Roger Whiteley via Discuss wrote:
Backup filename persistence across F5 and multiple scad files seems
like a bug, rather than a feature, it is present in OpenSCAD v2021.01
[installed via apt] and OpenSCAD version 2026.07.07 (git 1f65580cb).
Bug or feature?
On 10/22/2026 9:46 AM, Roger Whiteley via Discuss wrote:
> Backup filename persistence across F5 and multiple scad files seems
> like a bug, rather than a feature, it is present in OpenSCAD v2021.01
> [installed via apt] and OpenSCAD version 2026.07.07 (git 1f65580cb).
>
> Bug or feature?
Sure seems like a bug to me.
Duplicated.
In fact, there's already an issue: #4767
<https://github.com/openscad/openscad/issues/4767>.
JB
Jordan Brown
Sat, Oct 24, 2026 9:25 PM
Fixed with PR #7130.
Caveat: this feature, if working as intended, probably would not help
in your system-crash case.
The intent is that these backup files are to save you when Preview or
Render hang or crash the application. They are, when things are working
"correctly", deleted when you close the application. (Or, more
precisely, when you close the main window.) With this fix, they are
also deleted when you close the tab, or when you do a SaveAs.
-
They are not useful for cases like power failures while editing,
because there are no periodic backups of unsaved files. That's not
to say that we shouldn't have a periodic backup of unsaved files,
but we don't.
-
They are not useful for restoring that file that you just
accidentally deleted or overwrote, or that was destroyed in a disk
failure, because they are automatically deleted. Whether we should
try to help you with those cases, shrug, no strong opinion. (That's
what generic backup tools are for.)
If anything, for their intended use they are probably retained too
long. They should probably be deleted as soon as the preview or render
completes.
Fixed with PR #7130.
Caveat: this feature, if working as intended, probably would not help
in your system-crash case.
The intent is that these backup files are to save you when Preview or
Render hang or crash the application. They are, when things are working
"correctly", deleted when you close the application. (Or, more
precisely, when you close the main window.) With this fix, they are
also deleted when you close the tab, or when you do a SaveAs.
* They are *not* useful for cases like power failures while editing,
because there are no periodic backups of unsaved files. That's not
to say that we shouldn't have a periodic backup of unsaved files,
but we don't.
* They are *not* useful for restoring that file that you just
accidentally deleted or overwrote, or that was destroyed in a disk
failure, because they are automatically deleted. Whether we should
try to help you with those cases, shrug, no strong opinion. (That's
what generic backup tools are for.)
If anything, for their intended use they are probably retained *too
long*. They should probably be deleted as soon as the preview or render
completes.
MM
Michael Möller
Sun, Oct 25, 2026 7:22 AM
I had to specifically exclude that Openscad folder from my backupsystem -
lots and lots of files. I suppose I could have kept them as a counter for
how often I hit F5 :-)
But it gave me a way to backstep as many edits as I needed.
M²
lør. 24. okt. 2026, 23.26 skrev Jordan Brown via Discuss <
discuss@lists.openscad.org>:
Fixed with PR #7130.
Caveat: this feature, if working as intended, probably would not help in
your system-crash case.
The intent is that these backup files are to save you when Preview or
Render hang or crash the application. They are, when things are working
"correctly", deleted when you close the application. (Or, more precisely,
when you close the main window.) With this fix, they are also deleted when
you close the tab, or when you do a SaveAs.
- They are *not* useful for cases like power failures while editing,
because there are no periodic backups of unsaved files. That's not to say
that we shouldn't have a periodic backup of unsaved files, but we don't.
- They are *not* useful for restoring that file that you just
accidentally deleted or overwrote, or that was destroyed in a disk failure,
because they are automatically deleted. Whether we should try to help you
with those cases, shrug, no strong opinion. (That's what generic backup
tools are for.)
If anything, for their intended use they are probably retained too
long. They should probably be deleted as soon as the preview or render
completes.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I had to specifically exclude that Openscad folder from my backupsystem -
lots and lots of files. I suppose I could have kept them as a counter for
how often I hit F5 :-)
But it gave me a way to backstep as many edits as I needed.
M²
lør. 24. okt. 2026, 23.26 skrev Jordan Brown via Discuss <
discuss@lists.openscad.org>:
> Fixed with PR #7130.
>
> Caveat: this feature, if working as intended, probably would not help in
> your system-crash case.
>
> The intent is that these backup files are to save you when Preview or
> Render hang or crash the application. They are, when things are working
> "correctly", deleted when you close the application. (Or, more precisely,
> when you close the main window.) With this fix, they are also deleted when
> you close the tab, or when you do a SaveAs.
>
> - They are *not* useful for cases like power failures while editing,
> because there are no periodic backups of unsaved files. That's not to say
> that we shouldn't have a periodic backup of unsaved files, but we don't.
>
>
> - They are *not* useful for restoring that file that you just
> accidentally deleted or overwrote, or that was destroyed in a disk failure,
> because they are automatically deleted. Whether we should try to help you
> with those cases, shrug, no strong opinion. (That's what generic backup
> tools are for.)
>
> If anything, for their intended use they are probably retained *too
> long*. They should probably be deleted as soon as the preview or render
> completes.
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
JD
John David
Sun, Oct 25, 2026 1:12 PM
I do not know what software you use for your backups, but some systems have
rather sophisticated rule engines. You might be able to choose how many
backups you want, and then have your system skip all but those.
Also, for clearing out the old files, on Linux you can run "find
/path/to/search -type f ! -newermt "YYYY-MM-DD" and specifcy a date say
older than 6 to 12 months... You can also chain the automatic removal "...
-exec rm {} ; -print", but I use the latter sparingly as it can go
horribly wrong.
EBo --
On Sun, Oct 25, 2026 at 3:23 AM Michael Möller via Discuss <
discuss@lists.openscad.org> wrote:
I had to specifically exclude that Openscad folder from my backupsystem -
lots and lots of files. I suppose I could have kept them as a counter for
how often I hit F5 :-)
But it gave me a way to backstep as many edits as I needed.
M²
lør. 24. okt. 2026, 23.26 skrev Jordan Brown via Discuss <
discuss@lists.openscad.org>:
Fixed with PR #7130.
Caveat: this feature, if working as intended, probably would not help in
your system-crash case.
The intent is that these backup files are to save you when Preview or
Render hang or crash the application. They are, when things are working
"correctly", deleted when you close the application. (Or, more precisely,
when you close the main window.) With this fix, they are also deleted when
you close the tab, or when you do a SaveAs.
- They are *not* useful for cases like power failures while editing,
because there are no periodic backups of unsaved files. That's not to say
that we shouldn't have a periodic backup of unsaved files, but we don't.
- They are *not* useful for restoring that file that you just
accidentally deleted or overwrote, or that was destroyed in a disk failure,
because they are automatically deleted. Whether we should try to help you
with those cases, shrug, no strong opinion. (That's what generic backup
tools are for.)
If anything, for their intended use they are probably retained too
long. They should probably be deleted as soon as the preview or render
completes.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I do not know what software you use for your backups, but some systems have
rather sophisticated rule engines. You might be able to choose how many
backups you want, and then have your system skip all but those.
Also, for clearing out the *old* files, on Linux you can run "find
/path/to/search -type f ! -newermt "YYYY-MM-DD" and specifcy a date say
older than 6 to 12 months... You can also chain the automatic removal "...
-exec rm {} \; -print", but I use the latter sparingly as it can go
horribly wrong.
EBo --
On Sun, Oct 25, 2026 at 3:23 AM Michael Möller via Discuss <
discuss@lists.openscad.org> wrote:
> I had to specifically exclude that Openscad folder from my backupsystem -
> lots and lots of files. I suppose I could have kept them as a counter for
> how often I hit F5 :-)
> But it gave me a way to backstep as many edits as I needed.
>
> M²
>
> lør. 24. okt. 2026, 23.26 skrev Jordan Brown via Discuss <
> discuss@lists.openscad.org>:
>
>> Fixed with PR #7130.
>>
>> Caveat: this feature, if working as intended, probably would not help in
>> your system-crash case.
>>
>> The intent is that these backup files are to save you when Preview or
>> Render hang or crash the application. They are, when things are working
>> "correctly", deleted when you close the application. (Or, more precisely,
>> when you close the main window.) With this fix, they are also deleted when
>> you close the tab, or when you do a SaveAs.
>>
>> - They are *not* useful for cases like power failures while editing,
>> because there are no periodic backups of unsaved files. That's not to say
>> that we shouldn't have a periodic backup of unsaved files, but we don't.
>>
>>
>> - They are *not* useful for restoring that file that you just
>> accidentally deleted or overwrote, or that was destroyed in a disk failure,
>> because they are automatically deleted. Whether we should try to help you
>> with those cases, shrug, no strong opinion. (That's what generic backup
>> tools are for.)
>>
>> If anything, for their intended use they are probably retained *too
>> long*. They should probably be deleted as soon as the preview or render
>> completes.
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
RW
Roger Whiteley
Sun, Oct 25, 2026 5:02 PM
I have a QNAP NAS which uses QSYNC to handle data files - all my
OpenSCAD for example, but not .config or .local. Qsync won't find dot
files, or follow a symlink.
On systems without a GUI [all but two] I backup /home and /etc and
/var/www/html using scripts and tar to generate time stamped zip files,
these files get copied by the backup script back to the NAS - the NAS
has a share and a folder for every system to store configuration and
backup and things like history files.
The danger arises when OpenSCAD decides to stall and terminate mid
render.... which happens occasionally.
I've never managed to get a Debian 12 workstation to properly run the
system backup tool properly, so I've given up... its also an opportunity
to clear out the old junk I might never use..
I did try installing Openmediavault as a NAS solution, it lasted as long
as it took to realise the configuration installed over a working Debian
build and broke it, oh well, out with the USB stick.
YMMV, at least its not Windows.
R.
On 25/10/2026 13:12, John David wrote:
I do not know what software you use for your backups, but some systems
have rather sophisticated rule engines. You might be able to choose
how many backups you want, and then have your system skip all but those.
Also, for clearing out the old files, on Linux you can run "find
/path/to/search -type f ! -newermt "YYYY-MM-DD" and specifcy a date
say older than 6 to 12 months... You can also chain the automatic
removal "... -exec rm {} ; -print", but I use the latter sparingly as
it can go horribly wrong.
EBo --
On Sun, Oct 25, 2026 at 3:23 AM Michael Möller via Discuss
discuss@lists.openscad.org wrote:
I had to specifically exclude that Openscad folder from my
backupsystem - lots and lots of files. I suppose I could have kept
them as a counter for how often I hit F5 :-)
But it gave me a way to backstep as many edits as I needed.
M²
lør. 24. okt. 2026, 23.26 skrev Jordan Brown via Discuss
<discuss@lists.openscad.org>:
Fixed with PR #7130.
Caveat: this feature, if working as intended, probably would
not help in your system-crash case.
The intent is that these backup files are to save you when
Preview or Render hang or crash the application. They are,
when things are working "correctly", deleted when you close
the application. (Or, more precisely, when you close the main
window.) With this fix, they are also deleted when you close
the tab, or when you do a SaveAs.
* They are *not* useful for cases like power failures while
editing, because there are no periodic backups of unsaved
files. That's not to say that we shouldn't have a
periodic backup of unsaved files, but we don't.
* They are *not* useful for restoring that file that you
just accidentally deleted or overwrote, or that was
destroyed in a disk failure, because they are
automatically deleted. Whether we should try to help you
with those cases, shrug, no strong opinion. (That's what
generic backup tools are for.)
If anything, for their intended use they are probably retained
*too long*. They should probably be deleted as soon as the
preview or render completes.
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I have a QNAP NAS which uses QSYNC to handle data files - all my
OpenSCAD for example, but not .config or .local. Qsync won't find dot
files, or follow a symlink.
On systems without a GUI [all but two] I backup /home and /etc and
/var/www/html using scripts and tar to generate time stamped zip files,
these files get copied by the backup script back to the NAS - the NAS
has a share and a folder for every system to store configuration and
backup and things like history files.
The danger arises when OpenSCAD decides to stall and terminate mid
render.... which happens occasionally.
I've never managed to get a Debian 12 workstation to properly run the
system backup tool properly, so I've given up... its also an opportunity
to clear out the old junk I might never use..
I did try installing Openmediavault as a NAS solution, it lasted as long
as it took to realise the configuration installed over a working Debian
build and broke it, oh well, out with the USB stick.
YMMV, at least its not Windows.
R.
On 25/10/2026 13:12, John David wrote:
> I do not know what software you use for your backups, but some systems
> have rather sophisticated rule engines. You might be able to choose
> how many backups you want, and then have your system skip all but those.
>
> Also, for clearing out the *old* files, on Linux you can run "find
> /path/to/search -type f ! -newermt "YYYY-MM-DD" and specifcy a date
> say older than 6 to 12 months... You can also chain the automatic
> removal "... -exec rm {} \; -print", but I use the latter sparingly as
> it can go horribly wrong.
>
> EBo --
>
> On Sun, Oct 25, 2026 at 3:23 AM Michael Möller via Discuss
> <discuss@lists.openscad.org> wrote:
>
> I had to specifically exclude that Openscad folder from my
> backupsystem - lots and lots of files. I suppose I could have kept
> them as a counter for how often I hit F5 :-)
> But it gave me a way to backstep as many edits as I needed.
>
> M²
>
> lør. 24. okt. 2026, 23.26 skrev Jordan Brown via Discuss
> <discuss@lists.openscad.org>:
>
> Fixed with PR #7130.
>
> Caveat: this feature, if working as intended, probably would
> not help in your system-crash case.
>
> The intent is that these backup files are to save you when
> Preview or Render hang or crash the application. They are,
> when things are working "correctly", deleted when you close
> the application. (Or, more precisely, when you close the main
> window.) With this fix, they are also deleted when you close
> the tab, or when you do a SaveAs.
>
> * They are *not* useful for cases like power failures while
> editing, because there are no periodic backups of unsaved
> files. That's not to say that we shouldn't have a
> periodic backup of unsaved files, but we don't.
>
> * They are *not* useful for restoring that file that you
> just accidentally deleted or overwrote, or that was
> destroyed in a disk failure, because they are
> automatically deleted. Whether we should try to help you
> with those cases, shrug, no strong opinion. (That's what
> generic backup tools are for.)
>
> If anything, for their intended use they are probably retained
> *too long*. They should probably be deleted as soon as the
> preview or render completes.
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
JB
Jordan Brown
Mon, Oct 26, 2026 12:49 AM
On 10/25/2026 12:22 AM, Michael Möller wrote:
But it gave me a way to backstep as many edits as I needed.
It probably didn't, ever. And if it did, it was by accident.
- During the life of one MainWindow, it always uses the same name
(until this fix, for all tabs!), so you can't back out more than the
edits since your last preview/render.
- It only saves on preview/render, so if you've done a lot of work
since your last preview/render, too bad. (You can of course do a
normal save, but that doesn't automatically give you any history.
- A clean shutdown deletes the file. (But we think there was a bug
that caused many shutdowns to not be clean, and so miss the
deletion step.)
Like I said, this feature has much narrower use cases than it first
appears. It saves you from preview/render crashes, and that's about it.
Should we have a periodic automatic save mechanism, to protect you
against power failures and other system crashes? Quite possibly.
Should you have an automatic backup scheme that protects you against
accidental deletion and hardware failures, and may give you some ability
to back out to a previous save? Probably, but not our job.
Are there system facilities that will let you recover old versions of
files, to protect against unwanted edits (and maybe accidental
deletions)? Yes, if you turn them on - I believe the macOS variant is
called Time Machine, and the Windows variant is called File History. I
don't know whether we play nice with those mechanisms - we should, but I
wouldn't be surprised if we don't. But you have to set them up for your
system.
On 10/25/2026 12:22 AM, Michael Möller wrote:
> But it gave me a way to backstep as many edits as I needed.
It probably didn't, ever. And if it did, it was by accident.
* During the life of one MainWindow, it always uses the same name
(until this fix, for all tabs!), so you can't back out more than the
edits since your last preview/render.
* It *only* saves on preview/render, so if you've done a lot of work
since your last preview/render, too bad. (You can of course do a
normal save, but that doesn't automatically give you any history.
* A clean shutdown deletes the file. (But we think there was a bug
that caused many shutdowns to *not* be clean, and so miss the
deletion step.)
Like I said, this feature has much narrower use cases than it first
appears. It saves you from preview/render crashes, and that's about it.
Should we have a periodic automatic save mechanism, to protect you
against power failures and other system crashes? Quite possibly.
Should you have an automatic backup scheme that protects you against
accidental deletion and hardware failures, and may give you some ability
to back out to a previous save? Probably, but not our job.
Are there system facilities that will let you recover old versions of
files, to protect against unwanted edits (and maybe accidental
deletions)? Yes, if you turn them on - I believe the macOS variant is
called Time Machine, and the Windows variant is called File History. I
don't know whether we play nice with those mechanisms - we should, but I
wouldn't be surprised if we don't. But you have to set them up for your
system.