Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load IDB IDE Package Backup extension to help avoid loss of work #1267

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

blairmcg
Copy link
Contributor

@blairmcg blairmcg commented Jan 3, 2024

Modify the base image build to include a simple but useful extension that makes a backup copy of the last .pac file for a package before overwriting it. The files are copied to a 'Package backups' folder under the image root folder with a timestamp encoded in the name for uniqueness. The backups are not managed automatically so they will accumulate until deleted. This shouldn't be too much of a concern these days as the packages are generally not that large, but if this is a problem then there is a PackageBackup icon under Tools/Options/Inspect Options that can be used to disable the backup. Or evaluate PackageBackup disable. Some kind of cleanup, perhaps to limit the age of the backups that are kept, could be devised of course.

The motivation to add this now is #1266. This isn't a bug fix, but as I commented on the issue the particular outcome described doesn't correlate with a failure in Dolphin, so there is no actionable bug to address. Nevertheless, having backup copies created of previously saved packages will reduce the changes of losing work from many causes.

The package was originally contributed by Ian Bartholomew and was present in the repo already. It just needed a small fix, and then I enhanced it to make it fit into the IDE options framework.

@blairmcg blairmcg merged commit 9fb17cb into release/7.1 Jan 3, 2024
2 checks passed
@blairmcg blairmcg deleted the blairmcg/1266 branch January 3, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant