(08-04-2009 02:39 PM)MasterTH Wrote: you could code an counter which counts the files in the backup-folder with tar.gz in the end. If the amount of files is bigger then the number of backups given from the user ispcp can delete the oldest files.
Yes, that would work as well, but that solution would require 1 extra step.
First I would need to count all the files matching the pattern and then I would still need to delete the files based on the date in the file name (assuming that the ISPCP backups are "compromised" and that the file creation date is incorrect).
@miklosandras: Great