The backup utility could use some additional options and functionality:
1. There needs to be an option to bypass the currently required keyboard input for confirming a backup so that backup could be run unattended in a script
2. It would be nice to tell backup to disregard checking of the source and destination match in size. This feature, along with another option to specify the geometry of the backup, would allow non-RBF formatted disks to be backed up with the command.
Anonymous
Logged In: YES
user_id=859353
Originator: NO
Enhancement #1 should be easy to implement. There is, however, the choice of using a parameter or taking input from a file rather than the keyboard. I'm not sure if input to Backup can be redirected.
I believe enhancement #2 to risky. The destination disk could be unformatted, a smaller size, or a really different structure. Backup would need to encorporate Format to handle this as stated. Perhaps another approach would be better.
Backup could return an error code other than $00 when the formats are dissimilar. If a script file was used, shellplus could test the returned error and if $F9 (wrong type) was found, Format could be called and backup restarted. This would get more complicated if the format of the disk to be copied was a variable instead of predetermined.
It is my opinion that rather than changing Backup, Format and Dsave should be used in scripts. The end result would be the same, but there would always be a format before the copy. The only problem with this approach would be testing for actual disk structure and "bootability". Again, if the structure was predetermined and part of the script, a new Backup would be an academic issue.