J. Peng, on 01/21/2008 04:53 PM [GMT+500], wrote : > config squid to rotate logs and write a script to put the logs into > remote host with large disks,ie, a store device. > > On Jan 21, 2008 6:32 PM, Netmail <[EMAIL PROTECTED]> wrote: > >> Hi >> I want to keep the access log of my squid for 5 years ; how to for set this >> option ? >> Thanks ! >> >> >> we are keeping 6 months of logs on remote host.
1. enable log rotation for squid (keeping 1 is fine) 2. setup ssh key authentication between backup and squid hosts. 3. create a script to compress and SCP log file to bkp-host with somthing like .... rm -f /logbakup/* tar -czvf /logbakup/access.log_`date +%Y%m%d%H%M`.tar.gz /var/log/squid/access.log.0 scp /logbakup/*.tar.gz [EMAIL PROTECTED]:/squid-backups/ regards.