[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: backup-each-save.el v1.1
From: |
Kin Cho |
Subject: |
Re: backup-each-save.el v1.1 |
Date: |
Tue, 05 Oct 2004 13:54:36 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Actually I also wrote some code to backup every file I save, but
to a single directory (with a timestamp appended to each
filename). The backup directory would fill up with a thousand
files in a month, then I would manually (should write some elisp
to automate eventually) archive (and delete) the oldest 500 to a
single zip file.
I've been doing this for probably 4-5 years, and I have to go
back to this backup directory to recover files quite a few times.
Also I never had trouble finding the right file to recover, even
though the directory structure is not mirrored.
-kin
Benjamin Rutt <rutt.4+news@osu.edu> writes:
> Kin Cho <ignore-this-prefixkin@techie.com> 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
- Re: backup-each-save.el v1.1,
Kin Cho <=