The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
database backup and archiving/removal
ok heres the deal.
lve finally managed to set up a PHP based cron, as my other cron method didnt work too well, basically the script l use is accessed backs up *ALL* databases on server, including one or two non-vb scripts databases.. however due to the size of the forum l run, the dumps get rather large, and l mean 200meg a pop which builds up over time.. (thankfully its being gziped now) however l want to remove files older than 60 days, in short l only want 60 days worth of archived databases (as my friend said if one of us is offline and the other is busy for more than a week or two as it happens there are older backups) anywho l came up with this after searching around. find /path/to/backups -type f -name "*.gz" -ctime +60 -exec rm -v {} \; would this command clean up all databases that were older than 60 days without touching those that were below 59 days old? (as far as lve worked it out this command would only touch files ending with .gz if my calculations are correct) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|