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

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

Re: [rdiff-backup-users] Re: An idea


From: Ben Escoto
Subject: Re: [rdiff-backup-users] Re: An idea
Date: Sat, 1 Nov 2003 22:49:10 -0800

On Fri, 31 Oct 2003 11:32:05 +0000 Keith Edmunds <address@hidden> wrote:
> I do think that one additional rdiff-backup command would be helpful for
> writing a restore utility, and that is the ability to get the file
> history information about one given file. Something like:
> 
> rdiff-backup --get-file-history server::/path/to/file
> 
> This would need to take account of the fact that the file may not be in
> the latest backup, and would therefore have to check in the
> rdiff-backup-data tree as well. The output could be something like:
> 
> History  of filename.ext:
> <timestamp> <size>
> <timestamp> <size>
> 
> I've been thinking of this for some time, but haven't thought too much
> about the format of the output other than that it should be relatively
> easy to parse.

There is already something similar, the --list-increment-sizes switch.
Previously this was only in the development version, but it will also
be in the next stable version.  Here is some sample output:

        Time                       Size        Cumulative size
-----------------------------------------------------------------------------
Sat Nov  1 19:31:14 2003         53.7 KB           53.7 KB   (current mirror)
Tue Oct 28 03:22:01 2003       177 bytes           53.8 KB
Wed Oct 22 03:22:01 2003         2.47 KB           56.3 KB
Tue Oct 21 03:22:01 2003       322 bytes           56.6 KB
Mon Oct 20 03:22:01 2003       362 bytes           57.0 KB
Sun Oct 19 03:22:02 2003       160 bytes           57.1 KB
Sat Oct 18 03:22:01 2003         5.29 KB           62.4 KB
Fri Oct 17 03:22:00 2003       332 bytes           62.8 KB
Thu Oct 16 03:22:01 2003       377 bytes           63.1 KB
Wed Oct 15 03:22:01 2003       323 bytes           63.4 KB
Tue Oct 14 03:22:01 2003       128 bytes           63.6 KB
Mon Oct 13 03:22:01 2003       122 bytes           63.7 KB
Sun Oct 12 03:22:02 2003       156 bytes           63.8 KB
Sat Oct 11 03:22:01 2003         8.48 KB           72.3 KB
Fri Oct 10 03:22:01 2003       216 bytes           72.5 KB
Thu Oct  9 03:22:00 2003       182 bytes           72.7 KB
Wed Oct  8 03:22:00 2003       313 bytes           73.0 KB
Tue Oct  7 03:22:00 2003       178 bytes           73.2 KB
Mon Oct  6 03:22:01 2003       368 bytes           73.5 KB
Sun Oct  5 03:22:01 2003       157 bytes           73.7 KB
Sat Oct  4 03:22:01 2003         5.28 KB           79.0 KB
Fri Oct  3 03:22:01 2003       160 bytes           79.1 KB
Thu Oct  2 03:22:00 2003       310 bytes           79.4 KB
  ...<and so on>...


Unfortunately it is listing the increment sizes, not the original file
size, so it isn't directly what you want.  Increment size can be
useful for other things though, like knowing what is taking up space
in your backup directory.


-- 
Ben Escoto

Attachment: pgpD5rIgdj82p.pgp
Description: PGP signature


reply via email to

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