[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: backup-each-save.el v1.1
From: |
Benjamin Rutt |
Subject: |
Re: backup-each-save.el v1.1 |
Date: |
Tue, 05 Oct 2004 16:25:24 -0400 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Kin Cho <address@hidden> writes:
> I suggest two user specified options to auto purge older
> versions:
>
> A) purge by number of versions
> B) purge by age of versions
Because of the user-specified timestamping in the current version, I'd
have no idea how to manage the backup mirror tree, where filenames
could be named arbitrarily.
I suppose one way to fix this is to specify the suffix that is
appended to the filename (taking away power to do user-specified
filename timestamping), using some kind of ~1~, ~2~ type counter like
the regular backup files. However, that will scale O(n) as the # of
backup files increases, since I'll have to look for files with suffix
~1~ .. ~n~ to clean up.
Another approach would be to use some kind of registry/database where
I kept track of which filenames that have been copied. Is there
anything convenient to use along these lines in emacs?
I welcome discussions of either approach. Followup set to
gnu.emacs.help.
--
Benjamin Rutt