[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Question - Renaming?
From: |
Andrew K. Bressen |
Subject: |
Re: [rdiff-backup-users] Question - Renaming? |
Date: |
Fri, 06 Feb 2004 17:13:08 -0500 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux) |
>> I wonder if rdiff-backup is smart enough to figure out, that a file
>> has been renamed. So that it doesn't redownload all rotated log
>> files every day again and again (and stores the old ones for
>> restoring)?
It's on the feature request list on the wiki.
I deal with this by having the date embedded in the name of
my rotated logfiles.
My /etc/logrotate.d/syslog entries look something like this...
/var/log/mail.log
{
rotate 30000
weekly
olddir /var/log/old/mail/
postrotate
mv /var/log/old/mail/mail.log.1 /var/log/old/mail/mail.log-`date
+%Y-%m-%d`
/etc/init.d/syslogd reload >/dev/null
bzip2 /var/log/old/mail/mail.log-`date +%Y-%m-%d`
endscript
}
If I wanted to delete old logfiles,
I'd add a find | xargs rm to the above.
--akb