Re: [openupload-devel] Deleting automatically files
Status: Beta
Brought to you by:
tsdogs
|
From: Sébastien S. <seb...@te...> - 2010-11-04 11:58:54
|
Hello Greg I'm not developper at all, could you please send me the script to delete? Many thx Sébastien Serre Logistic & IT dept Tex Alliance Tel: +33 1 56 77 30 11 Fax: +33 1 83 62 70 13 Le 30/10/2010 19:08, Sebastien Serre a écrit : > Hello > > I add the expires otion at 30 days, but i had to go on maintenance menu to delete them. > > I wrote a script to delete them by adding it on a cron job: > > #!/bin/bash > > find /var/www/openupload/data/ -type f -mtime +30 | xargs -r rm > > > It's deleting the files but i have to delete too the entrance in the mysql db... any one have an idea of line I have to add ro my scripts? > > Many thx > > > > Sébastien Serre > > TEX ALLIANCE > Logistic& IT Department > Tél.+33.(1).56.77.30.11 > Fax.+33.(1).76.50.82.23 > seb...@te... |