Bug 156954 - implement robust data recovery for lost work (autosave on interval, etc.)
Summary: implement robust data recovery for lost work (autosave on interval, etc.)
Status: RESOLVED DUPLICATE of bug 89651
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: AutoSave-AutoRecovery-Backup
  Show dependency treegraph
 
Reported: 2023-08-27 21:17 UTC by libreoffice
Modified: 2023-09-13 03:17 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description libreoffice 2023-08-27 21:17:37 UTC
I have "save autorecovery info" set to 2 minutes, and "always create backup copy", and File-Versions->"Always save a new version on closing" enabled, but it is still too easy to lose work by accidentally deleting sections and not noticing, or by accidentally clicking "don't save" in the dialog that appears when you close a document, especially when you have multiple documents open, especially if your window manager places Save/Don't Save dialogs in the wrong place, etc.

It seems like File->Versions->"Always save a new version on closing" does not save a version when closing if the user does not decide to save changes at the closing dialog. (I filed bug #156953 for that). If that bug is fixed (or I am mistaken), it would help a lot with this.

Another potential option would be something like "[x] keep autorecovery information on document close even if crash doesn't happen" and to allow autorecovery to be manually instigated at any time (as long as you do it before the next autorecovery save happens, I suppose)

But it would be nice to have more robust mechanisms for recovering older versions of files, lost data, etc.

Specifically, an "autosave" function... here's the deluxe dream version for me:

[x] automatically save backup copies every X minutes
  [ ] save backups in same directory as original
    [ ] prune backup copies in original directory to
      [ ] maximum age of ______ days/hours/minutes
        [ ] minimum number of backup files to keep: _____
      [ ] maximum number of files: ____
      [ ] maximum total disk usage of backups of a given file (minimum one backup): _____
  [x] use this centralized directory for all autosave copies: ________
    [x] prune backup copies in centralized directory to
      [x] maximum age of ______ days/hours/minutes
        [x] minimum number of backup files to keep: _3___
      [ ] maximum number of files: ____
      [ ] maximum total disk usage of backups directory (minimum one backup): _____
[x] also save a backup copy when manually saving
[x] save a backup copy on exit, whether or not changes are saved on exit
[x] attempt to save a backup copy when program crashes

...this is distinct from autorecovery as these copies are accessible whether or not the program crashes, they persist (according to settings), and they are always available.

This could also incorporate the timestamp and file metadata ideas in bug #154109.

I know there are million things to consider about it (filename collisions, UX details to work out, etc.) It just feels frustrating that in this day and age we should still be able to so easily lose data, especially when editing a little 10k text file.

Thanks for considering!
Comment 1 libreoffice 2023-08-27 21:21:04 UTC
...and of course a simpler/possibly-more-logical idea would be File->Versions->"[x] autosave a new version every X minutes", possibly incorporating some of the options described for managing number of versions, etc.
Comment 2 Stéphane Guillou (stragu) 2023-09-11 08:33:08 UTC
Thanks for the report, Casey.

Justin, you looked into this topic recently, could you please give your opinion?

UX/Design team, please have a look at Casey's suggestions.
Similar suggestions in bug 89651.

(In reply to libreoffice from comment #0)
> It seems like File->Versions->"Always save a new version on closing" does
> not save a version when closing if the user does not decide to save changes
> at the closing dialog. (I filed bug #156953 for that). If that bug is fixed
> (or I am mistaken), it would help a lot with this.

Let's discuss this in the dedicate report, I commented there.
Comment 3 Justin L 2023-09-11 13:37:09 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> Justin, could you please give your opinion?
Yes, I'd say this is a duplicate of bug 89651, and I have the same opinion about this suggestion: use a dedicated backup program to get a versioned history.
Comment 4 Heiko Tietze 2023-09-12 07:15:52 UTC
(In reply to libreoffice from comment #0)
> It seems like File->Versions->"Always save a new version on closing" does
> not save a version when closing...
Without reading the details, please check first https://help.libreoffice.org/latest/en-US/text/shared/guide/redlining_versions.html. Versions are stored inside the document bloating the file heavily. 

> [x] automatically save backup copies every X minutes
+1 to make this request a duplicate.

>   [ ] save backups in same directory as original
Has been discussed recently in bug 150148 being a dup of bug 150148 and was implemented as default for the next version.

>     [ ] prune backup copies in original directory to
>       [ ] maximum age of ______ days/hours/minutes
>         [ ] minimum number of backup files to keep: _____
>       [ ] maximum number of files: ____
>       [ ] maximum total disk usage of backups of a given file (minimum one
Bit too much fine-tuning for my taste but definitely worth to discuss on the duplicate.

*** This bug has been marked as a duplicate of bug 89651 ***