Use mysqldump to dump DB into the "data" directory on the site.
An alternative would be SELECT INTO OUTFILE if you already have some kind of SQL schema.
Use tar to pack the contents of the website.
tar -xvf site.tar
Use FTP, SCP, SFTP, etc. to transfer them to a new location, unpack them, and then depending on how the database was reset, restore the database and give it a whirl.
source share