Potential improvement to the backup process

Asked by ivar persson

The current backup file is saved to the same folder, and is overwritten every 30 seconds. Would it improve things to have a separate backup directory, with a temp backup maintained in the same folder as the file being edited, and the backup transferred to the separate directory at the end of the session? This might help as currently if the file is opened, then the backup becomes effectively useless after 30 seconds. The file opening prevention introduced in the 0.7xseries is a help, but that is useful in case of a crash. Backups saved to a separate directory at close would be useful in case of accidental deletion of entries, or anyy such non-crash problems. It might be implemented by linking it to logout button, with perhaps last 10 backups saved as ~backup0~ to ~backup9~ or any such number, so that the oldest ones are periodically over written (by saving ~backup10~ as ~backup0~ by using only the last digit in the naming convention), but the last 10 are safe in case of any unknown emergency. This would be a much more effective backup solution, as opposed to the current ones that have an effective life only of 30 seconds, before being overwritten.

Question information

English Edit question
Lifeograph Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ahmet Öztürk (dmxe) said :

Thanks for thinking about improvements for Lifeograph. Implementation of your idea can really be beneficial for some users. But please note that, Lifeograph backs up previous version of a diary file before saving, in addition to those 30s backups. These are named with .~previousversion~ suffix and saved in the same directory as the original diary. The number of previous versions may be increased like you suggested but I am not in favor of saving in a separate/dedicated directory as it will cause security concerns.

All in all, rather than polluting the file systems with several backup files, I think a better approach would be to introduce something like a trash can to prevent accidental deletion of entries. This is actually planned for upcoming versions.

Can you help with this problem?

Provide an answer of your own, or ask ivar persson for more information if necessary.

To post a message you must log in.