Login   Register  
PHP Classes

Periodic site maintenance: Perform several site maintenance tasks

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-04-27 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 763 This week: 1All time: 4,074 This week: 1,384Up
Version Licenses PHP version Categories  
as_nightjobs 1.00BSD License, GNU Lesser...4.3Databases, Files and Folders, Systems...
Description Author  

This class can be used to perform several site maintenance tasks. Currently it can:

- Take backups of database tables to compressed XML files
- Rotate backup files deleting files older than a given number of days
- Remove files from given directories that match certain name patterns or were modified for the last time some time ago
- Delete obsolete records from certain database tables
- Check and optimize MySQL database tables
- Calculate space occupied by site files and data in MySQL tables
- Estimate the number of days before the site files exceed a given disk space limit

Innovation Award  
PHP Programming Innovation award nominee
February 2009
Number 3

Prize: One book of choice by O'Reilly
Every site needs to take care of several types of maintenance tasks like performing backup copies of critical information, clean-up no longer used information, etc...

This package offers an extensive solution to take care of many of the common maintenance tasks.

Manuel Lemos
Picture of Alexander Selifonov
Name: Alexander Selifonov is available for providing paid consulting. Contact Alexander Selifonov .
Classes: 15 packages by
Country: Russian Federation Russian Federation
Age: 52
All time rank: 612 in Russian Federation Russian Federation
Week rank: 123 Down7 in Russian Federation Russian Federation Down
Innovation award
Innovation award
Nominee: 11x

Winner: 2x

  • nightjobs-shot.png
  Files folder image Files  
File Role Description
Plain text file as_nightjobs.php Class main class module
Plain text file as_dbutils.php Class Database wrapper used by main module
Accessible without login HTML file as_nightjobs.en.htm Doc. Documentation (english)
Accessible without login HTML file as_nightjobs.fr.htm Doc. Documentation (french) - thanks to P.Gohier
Accessible without login HTML file as_nightjobs.ru.htm Doc. Documentation (russian)
Accessible without login Plain text file job_sample.php Example using sample

 Version Control Unique User Downloads Download Rankings  
 0%Total:763All time:4,074
 This week:1This week:1,384Up
 User Comments (1)  
Clean code, nice concept.
5 years ago (F Philip DeGeorge)