David Jardine ha scritto:
On Mon, Jan 09, 2006 at 10:12:46PM +0100, Marco wrote:
Hi all,
I have make in /etc/logrotate.d a new file (as name backup) for rotate
my backup's log.
This is the text in my file:
/var/log/backup {
rotate 4
monthly
compress
delaycompress
missingok
notifempty
create 640 root adm
}
I have also restart my system, but my log don't route.
Have you tried it with the -f option, i.e,
logrotate -f /var/log/backup
from the command line? If that works, it may be that your computer
was simply not switched on at the time logrotate should have been
doing its job.
I David
I have try with "logrotate -f /var/log/backup I have these errors:
error: razor-agent.log:1 unknown option 'ott' -- ignoring line
error: razor-agent.log:1 unexpected text
error: razor-agent.log:2 unknown option 'ott' -- ignoring line
error: razor-agent.log:2 unexpected text
error: razor-agent.log:3 unknown option 'ott' -- ignoring line
error: razor-agent.log:3 unexpected text
error: razor-agent.log:4 unknown option 'ott' -- ignoring line
error: razor-agent.log:4 unexpected text
error: razor-agent.log:5 unknown option 'ott' -- ignoring line
error: razor-agent.log:5 unexpected text
...................
error: razor-agent.log:174 unknown option 'ott' -- ignoring line
error: razor-agent.log:174 unexpected text
This is the extract of my backup.log
ott 15 17:17:30 [Beta Backup System] Starting backup ...
ott 15 17:17:30 [Beta Backup System] logfile
/var/backups/2005.10.15-17.17-beta-backup.log created
ott 15 17:17:38 [Beta Backup System] Backup finished.
Help :-(
Thanks
Marco
Could you help me???
Thanks
Marco
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]