On Windows the Linux cron job feature is not available which would have done the above job for you.
However Windows has it's own scheduling feature called
Scheduled Tasks found in
Start>All Programs>Accessories>System Toolsin XP but location may vary with the newer Windows Versions.
You would normally create a batch file and then use this feature to run the batch file at certain times to copy over the relevant database folder from the \xampp\mysql\data folder to where ever you want it.
There may be more help in these
search results on this subject - change the keywords to find out how to create a batch file for your needs if there is no info on batch files in the above search results.
There are also many commercial programs that could do a similar job, like many of the automation software offerings also there is WinCron, all of which may be revealed from an Internet search - download a trial version first to see if the software does the job you expect it to do...
...or this freeware may be a good place start:
http://allwaysync.com/You could also investigate the built in
Synchronize feature of phpMyAdmin at
http://localhost/phpmyadmin - read the related documentation for help, also an Internet search may hold some results from people who have actually used this feature.
Best I can suggest, but others may follow my lead and reply with alternative suggestions - hopefully the code for a suitable batch file would be most helpful for you.