NormanDunbar wrote:Without wishing to detract from Jan's Hardback program, my old WinBack utility - available from Dilwyn's excellent site - has a utility to scan the hard drive for directories and will create a small SuperBASIC program you can run prior to restoring, to recreate the full directory tree. This is useful for two reasons:
* Simplicity - it saves time typing in lots and lots of MAKE_DIR commands;
* Efficiency - it's better to pre-create the directories before importing the files otherwise all the files get put in the root directory, which becomes large, then get moved to the various sub-directories leaving the root massively fragmented and full of holes, in a manner resembling a Swiss Cheese!
I've attached the file somewhere around here, in case it's useful. I don't think it needs any assembly extensions. It has been compressed on Linux, so no QL headers will be present, but it's a non-executable anyway. I had to zip it as the forum doesn't like files with _bas, .bas or .txt as an extension.
Am currently using your WinBack Norman. I did the directory creation thing first - it tripped up on the syntax of the 'WHEN_ERROR 0', I had to change that to 'WHEN ERROR' without the underscore. And then of course I had to change the resultant _bas file a little, but just to suit where I want the directories to be made (the default is win1_). I had forgotten that I'd already manually created one of the directories and it failed when it got to that one. Luckily it wasn't all that far into it, so I was able to just rem out the DATA lines of the ones that it had already created and then start again.
And it's running though backing up everything to DEV1_ now (which is a sub dir on the QXLII machine). Marvellous.