Ian's Dolphin Smalltalk Pages
: PackageBackup

Overview

This package provides a very simple (simplistic) method for backing up packages. When loaded it registers for an event triggered by the base image when a package is about to be saved. When this event is triggered the additional code checks to see if there is an existing package file that will be overwritten and, if so, it copies the existing file to a backup folder.

The default location for the backup folder is named "Package backups" and is located in the same folder as the image files.

When a backup is save the current millisecond clock count is appended to the filename, to avoid the risk of duplication. If you decided to restore a backed up package then this addition must be removed before attempting to reload the package.

No cleanup of the backup folder is done so if you don't check it every so often it could fill up your drive!