obsidian-local-backup icon indicating copy to clipboard operation
obsidian-local-backup copied to clipboard

Feature Request: Backup once on close

Open ANiceCupOfTea opened this issue 1 year ago • 1 comments

Hi, I love your plugin and wanted to feedback on a feature I think would improve it. (Apologies if this is not the best way to make a feature request.) I was wondering if it would be possible to add an option in the plugin settings for running a backup when the application is closed as opposed to when it opens. This is how several other word-processing applications that I use run their backups, for example, Scrivener. It just makes more sense to me to have a backup of everything as it was when you used it last. (If you used Obsidian for several hours, closed it, and then some time later had a system failure or the local files were corrupted, you would lose all of that work. If a zip backup was created when the application was closed, everything would be backed up.) Thanks!

ANiceCupOfTea avatar Feb 22 '24 15:02 ANiceCupOfTea

Hi, thank you for your advice, in fact I wanted to add this feature at the early time, but unfortunately Obsidian has no API to make that, so this feature hadn't been done yet

velviagris avatar Feb 22 '24 23:02 velviagris

Hi, indeed thank you for this great plugin.

I was also wondering if a backup could be done when Obsidian is closing and i found the Workspace.on('quit') event. I haven't tried but i think it may work it that case.

https://docs.obsidian.md/Reference/TypeScript+API/Workspace/on('quit')

I found this link on the Obsidian Forum https://forum.obsidian.md/t/cleanup-when-obsidian-is-closed/83709

MrAnyx avatar Oct 22 '24 09:10 MrAnyx

This feature is supported at the latest version: 0.1.9. So this issue will be closed.

velviagris avatar Mar 12 '25 08:03 velviagris