barrybackup is a GUI application for backing up and restoring Blackberry handheld databases.
The application allows for filtering of databases for both backup and restore, so not all databases need to be backed up at once, nor all restored.
Backups and configuration files are stored by default in the user's home directory, under ~/.barry/backup/PIN. This destination can be changed in the config dialogs, per device.
The backup files are compressed tarballs containing specially named files for each record of the databases.
The tag name is optional and is used to name a particular backup.
Each record is appended to the tar file using the following pattern for the filename:
That is, the database name is used as the directory name, and the filename contains the record ID and record type ID separated by a space.
Database names can contain spaces.
Record IDs are generally unique, but not all Blackberry devices mandate this, so it is possible, but rare, to have two records in the tar file with the same filename. This is ok. The only problem you'd see is if you expanded such a tar file to a filesystem. The restore process just reads in the filename sequentially and writes them to the device, so duplicate record IDs are not a problem.