rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Question - Renaming?


From: Ryan Castle
Subject: Re: [rdiff-backup-users] Question - Renaming?
Date: Sun, 8 Feb 2004 19:54:01 +1100

I posted this to the wiki.

Perhaps for cases like these a wrapper to "mv" could be packaged with
rdiff-backup. It could maintain a hint list of moves for rdiff-backup to
check (run MD5 on I guess). Since the functionality is going to be most
useful for scripts that move stuff, or users doing one-off moves of really
large files, it wouldn't be that hard to get users to change their habits.
Anyone with the logfile problem could fix it with a minor change to the
logrotate script, and an extra command line flag.

Ryan

*
http://footboot.net/journal/

----- Original Message -----
From: "Andrew K. Bressen" <address@hidden>
To: <address@hidden>
Sent: Saturday, February 07, 2004 9:13 AM
Subject: Re: [rdiff-backup-users] Question - Renaming?


>
> >> 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
>
>
> _______________________________________________
> rdiff-backup-users mailing list at address@hidden
> http://mail.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL:
http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]