Sentora Support Forums

Full Version: Deleted Records Manager - Automatic / CRON?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there.

Is there any way to set up a cron task or any other way to automatically delete records which have been removed.

I fail to understand the use of having deleted records anyway, does anyone have any idea why it would be useful?, maybe only for a recovery feature.. but I am yet to see that in any modules or planned modules.

I've recently been implementing with WHMCS and multiple servers, working very well, but having a bunch of problem when needing to re-register clients due to records existing and considering I have multiple servers, it's a real pain to login to each one and clear the records.

Any automation for this?

Thanks!
It is done by design. (To keep deleted records.) There are many reasons, one of the most important is to keep track of who/what was on your server for legal purposes to help protect yourself. It is also there to prevent spammers from re-registering, etc. There is no cron created to remove these entries.

I suppose you could make a cron to do this, but it is not recommended.
(01-17-2018, 12:30 AM)TGates Wrote: [ -> ]It is done by design. (To keep deleted records.) There are many reasons, one of the most important is to keep track of who/what was on your server for legal purposes to help protect yourself. It is also there to prevent spammers from re-registering, etc. There is no cron created to remove these entries.

I suppose you could make a cron to do this, but it is not recommended.

I suppose that makes sense, although, surely a log would be better instead of database entries. Anyway, I wouldn't know the best way to set up a cron without blowing up my entire installation.. any ideas?

I'm familar with cron, just wouldn't know how to program it.

ALSO, on the subject of CRON, I've NEVER figured out how to use the cron section of sentora panel to run lets say:


Code:
*/5 * * * * php -q /var/sentora/hostdata/userabc/public_html/domainname/crons/cron.php

Could you be as kind to advise how to do this? I've just been using crontab, which is fine.. but you know, would be nice to figure out the panel side too.
#491
(01-17-2018, 01:01 AM)TGates Wrote: [ -> ]#491

Thanks man, how about the cron that I should be running to clear deleted records?
You could pick parts of the Deleted Records module to make a cron file to do the work. (copy and paste?)