Move ServiceDesk Plus to another server

Move ServiceDesk Plus to another server

Hello everyone, 
I have an on premise server running ServiceDesk Plus that was infected so I have to create a new one. (I detected an exploit file on the root folder of the tool).
I have read differents kb on the official site, now I have the new server with the same version tool but my question is: can I use backupData.bat and then import the db if my server is infected? 
Or should I only import the db? 

Db is Postgresql

Thanks regards

                  New to ADSelfService Plus?