Delete domain with log

davidd1

Verified User
Joined
Jan 31, 2013
Messages
102
Hi and sorry for my bad English:)

Why when I delete domain the log not delete to ?
in :
/var/log/httpd/domains/somedoamin.com.bytes
/var/log/httpd/domains/somedoamin.com.bytes.1
/var/log/httpd/domains/somedoamin.com.bytes.2
/var/log/httpd/domains/somedoamin.com.bytes.3
/var/log/httpd/domains/somedoamin.com.bytes.4
/var/log/httpd/domains/somedoamin.com.error.log
/var/log/httpd/domains/somedoamin.com.log

also some file in tmp
sess_102a98b3f12b1ef79213e01af7aa2550 -> owen by USER that delete (I know tmp folder clear sometimes but still)
 
Hello,

Yes, I've noticed that too, and think it would a good idea if Directadmin would clear logs dir from old files.
 
My opinion is that would be better let the admin decide, with maybe a config line in directadmin.conf

For example, for italian Law we need to keep logs for 5 years (or something like that, dont remember exactly), so, i would need to keep them and remove in the future (or save them apart before remove the domain).

Regards
 
Andrea,

As soon as you remove an user from directadmin you already remove all rotated logs for all his/her domains which are located in /home/<username>/domains/<domain>/logs/. But directadmin does not remove not rotated logs and *.bytes from /var/log/httpd/domains/ and /var/log/nginx/domains/.

Or you keep all the rotated logs in /var/log/httpd/domains/ and /var/log/nginx/domains/ ?
 
Ah, actually you're right, just busy mind :) I'm keeping the last backup for user that *should* contain also rotated logs.. at least i hope.. now i've a doubt in my mind :D

Regards
 
Back
Top