On 230506, 10:10, Asterisk wrote: > > I have noticed that 'logger rotate' command only rotates log files in > the /var/log/asterisk directory, but not in the subdirectories. How > could I rotate my /var/log/asterisk/cdr-custom/Master.csv log file?
Just create a shell script like this:
#!/bin/sh
BKPREF="backup_cdr"
BKNAME="$BKPREF.`date +%Y.%m.%d.at.%H.%M.%S`" # how to name your files
BKPATH="/data/backup" # backup directory
mv /var/log/asterisk/cdr-custom/Master.csv ${BKPATH}/${BKNAME}
and you're done.
--
Massimiliano Stucchi, CTO & Director of Operations
WillyStudios.com - IT Consulting, Web and VoIP Services
[EMAIL PROTECTED] | Tel (+39) 0244417203 | Fax (+39) 0244417204
IT-20040, Carnate (Milano), via Carducci 9
pgpOvsWA5yRZ2.pgp
Description: PGP signature
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
