1) What folders to back up
The web folder for osTicket and any subfolders.
2) What database to backup
The database that you setup for osTicket. You can find the name in the /include/ost-config.php file.
3) Does anyone have a script that dumps the database to a file that they use.
No. We do not back up that way.