How to run RealtyCP "CLEANUP" automatically?

kbassil

New Member
I have a restarter script that I run every 4 hours. Everything works great, but I don't know how to cleanup the server with every restart? Here's what I need to know:

  1. Which script actually controls the cleanup?
    • What is the file name?
    • What parameters control it? For example, how can I set it to run on instance 2, all options (wrecks, tents, bounds, etc) in the past 5 days?
    • Example of the code used?
 
echo.
echo Starting DB Cleanup
:: start the cleanup..
set mapperpath="F:\ServerTools\Mapper\"
cd /d %mapperpath%
start db_utility.bat



perl db_utility.pl --instance 2 --host localhost --user username --pass pass --name mod --port port cleandead 5

timeout 5

cls
@exit
 
Back
Top