You should always have a backup before upgrading. Thus if thats the case, get a whole new install and restore your backup.
Thanks guys. I'm planning to purchase a script but it doesn't work for 2.3 I guess I have to wait for the script to be compatible then.
you can only do if you have backuped your old file Rather, download your mysql database, install a fresh old version and upload the database again