@@ -2169,18 +2169,21 @@ ((archive) (debug:print 1 *default-log-port* "Archiving/restoring (" (args:get-arg "-archive") ") data for run: " runkey " " (db:get-value-by-header run header "runname")) (set! worker-thread (make-thread (lambda () - (case (string->symbol (args:get-arg "-archive")) + (let ((op (string->symbol (args:get-arg "-archive")))) + (case op ((save save-remove keep-html) - (archive:run-bup (args:get-arg "-archive") run-id run-name tests rp-mutex bup-mutex)) + (archive:run-bup op run-id run-name tests rp-mutex bup-mutex)) ((restore) - (archive:bup-restore (args:get-arg "-archive") run-id run-name tests rp-mutex bup-mutex)) + (archive:bup-restore op run-id run-name tests rp-mutex bup-mutex)) + ((get) + (archive:bup-get-data op run-id run-name tests rp-mutex bup-mutex)) (else - (debug:print-error 0 *default-log-port* "unrecognised sub command to -archive. Run \"megatest\" to see help") - (exit)))) + (debug:print-error 0 *default-log-port* "unrecognised sub command " op " for -archive. Run \"megatest\" to see help") + (exit))))) "archive-bup-thread")) (thread-start! worker-thread)) (else (debug:print-info 0 *default-log-port* "action not recognised " action)))