diff --git a/web/clitools/maintain/maintain.bash b/web/clitools/maintain/maintain.bash index 6ec2db8..7baf9f8 100755 --- a/web/clitools/maintain/maintain.bash +++ b/web/clitools/maintain/maintain.bash @@ -63,6 +63,8 @@ if [ "${ec}" != "0" ]; then else logcmd "xz -9 ${ofp}" "${logfp}" fi +buff=`ls -1rt maintain/backups/${dbname}_backup-*.sql.xz | head -n -10` +for fn in $buff; do rm "$fn"; done [ $ok -eq 1 ] && subj="maintain.bash: tutto ok :-)" || subj="maintain.bash: ci sono errori :-(" body="[[[ ${logfp} ]]]\n\n" body+=`cat "${logfp}"`