const config = {...}; // Classic configuration with manager = trueconst RESTORE_OPTS = { database: 'database.fdb', files: ['backup.fbk']}; Firebird.attach(config, (err, srv) => { srv.restore(RESTORE_OPTS, (err, data) => { data.on('data', () => {}); data.on('end', () => srv.detach(); }); });});