drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

Autosave backup files accumulating on Linux FS

Open gskerry opened this issue 2 years ago • 12 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug Desktop client spams Linux filesystem with auto-save/lock files (e.g. ~$<file>.drawio.bkp)

To Reproduce Steps to reproduce the behavior: Save <file>.drawio locally on linux fs.

Expected behavior Remove after explicit save within Drawio; remove on program close; or automatically hide them.

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 18.0.1

Desktop (please complete the following information):

  • Linux Mint 20.1 Cinnamon 4.8.6 (5.4.0-92-generic)

gskerry avatar May 05 '22 18:05 gskerry

This is the autosave draft, it's not windows specific.

davidjgraph avatar May 05 '22 21:05 davidjgraph

Are they supposed to remain after closing the Drawio desktop?

gskerry avatar May 06 '22 02:05 gskerry

Yes, we had some issues with empty files written, so this is used as a backup. Is this is a frequency of write issue because of disk damage?

davidjgraph avatar May 06 '22 09:05 davidjgraph

I'm on windows and also see this behavior.

It's annoying because the .drawio.bkp file gets left behind when draw.io is closed. You end up with 2 files for every document.

I would expect this file to be deleted when draw.io is closed. And while draw.io it is still open the file should either have the hidden attribute or be saved in another location. Maybe saving it in another location would defeat the purpose though.

JonathanLindsey avatar May 06 '22 18:05 JonathanLindsey

Yes, we had some issues with empty files written, so this is used as a backup. Is this is a frequency of write issue because of disk damage?

Don't know if this is to me (OP)? Not sure I fully follow the question... No disk damage that I am aware of. It's a filesystem hygiene issue for me. Nothing mission critical, but would prefer not to have the clutter on the fs.

gskerry avatar May 06 '22 20:05 gskerry

I'm on windows and also see this behavior.

It's annoying because the .drawio.bkp file gets left behind when draw.io is closed. You end up with 2 files for every document.

I would expect this file to be deleted when draw.io is closed. And while draw.io it is still open the file should either have the hidden attribute or be saved in another location. Maybe saving it in another location would defeat the purpose though.

This is also what i want to say ~

wwdok avatar Jun 14 '22 10:06 wwdok

Same here. An option to turn this behaviour off would be nice to have. I've never experienced empty files being written but the autosave files accumulating is very annoying.

moongoal avatar Aug 23 '22 06:08 moongoal

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Mar 25 '23 12:03 stale[bot]

I store some .drawio files in my OneDrive, having .drawio.bkp files continously created and synced to the cloud seems unneccessary.

An option to redirect those temp / backup files to a different folder would be great. Like %LOCALAPPDATA%\Diagrams\Temp maybe?

o-l-a-v avatar Mar 29 '23 08:03 o-l-a-v

Or to delete the .drawio.bkp file if the project was saved successfully (or has no unsaved changes)

gian1200 avatar Jul 20 '23 05:07 gian1200

setting Extras->Drafts 0 (0 to disable) solved the problem for me.

hasan-4 avatar Sep 15 '23 12:09 hasan-4