Changeset 1113


Ignore:
Timestamp:
03/20/10 14:23:13 (2 years ago)
Author:
victorsb
Message:

Added a script to delete old backups in such a manner as to maintain
backups to every 2x days (approximately) before the current one.
It has to be run every day after the daily backup script.

REVIEW URL http://reviewboard.infoarena.ro/r/136/

Location:
trunk/scripts
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/utilities.php

    r1027 r1113  
    104104} 
    105105 
     106function is_backup_filename($filename, &$matches) { 
     107    $pattern = "/^db-(\d{4})(\d{2})(\d{2})\.sql\.gz\.gpg$/"; 
     108    return preg_match($pattern, $filename, $matches); 
     109} 
     110 
    106111?> 
Note: See TracChangeset for help on using the changeset viewer.