Skip to content

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

Merged
blairmcg merged 2 commits intorelease/7.1from
blairmcg/1266
Jan 3, 2024
Merged

Load IDB IDE Package Backup extension to help avoid loss of work#1267
blairmcg merged 2 commits intorelease/7.1from
blairmcg/1266

Conversation

@blairmcg
Copy link
Copy Markdown
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
@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