[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: backup method
From: |
Han Boetes |
Subject: |
Re: backup method |
Date: |
Fri, 28 Jan 2005 04:55:56 +0059 |
User-agent: |
Mutt/1.5.6i |
Richard Stallman wrote:
> Han Boetes wrote:
> > The default backup method is mv and then create a new file.
> > That's nice if you really want to keep the timestamp intact.
> > But if you use emacs with crontab -e you remove the tmpfile
> > and since the filedescriptor is still open your update to your
> > cron is lost -- without warning. It was pretty hard to
> > discover why this happened.
> >
> > So I would like to suggest to make backup by copying the
> > default.
>
> I won't change it in general, but we could probably arrange to
> use backup by copying for *this specific case*. Can you give a
> precise recipe for distinguishing this case--a regexp for these
> file names, perhaps?
My initial suggestion to do backup by copying is not the right
solution for the problem at all. I explained the right solution in
another message in this thread.
My prove is:
unset TMP TMPDIR
export VISUAL='emacs -q' # which does backup by moving by default
crontab -e
And you can edit your crontab fine since emacs won't make a backup
of files in /tmp
export TMP=~/.tmp; export TMPDIR=~/.tmp
export VISUAL='emacs -q' # which does backup by moving by default
crontab -e
And you can no longer edit crontabs since emacs will make a backup
of files in /tmp.
This problem is caused by the fact that not all programs honour
TMPDIR and still make tmpfiles in /tmp. Or that emacs does not
anticipate this.
I described the solution in another message in this thread.
# Han
- backup method, Han Boetes, 2005/01/26
- Re: backup method, Luc Teirlinck, 2005/01/26
- Re: backup method, Miles Bader, 2005/01/26
- Re: backup method, Luc Teirlinck, 2005/01/26
- Re: backup method, Han Boetes, 2005/01/26
- Re: backup method, Richard Stallman, 2005/01/27
- Re: backup method,
Han Boetes <=
- Re: backup method, Richard Stallman, 2005/01/28
- Re: backup method, Han Boetes, 2005/01/29
- Re: backup method, Luc Teirlinck, 2005/01/29
- Re: backup method, Stefan Monnier, 2005/01/29
- Re: backup method, Luc Teirlinck, 2005/01/29
- Re: backup method, Luc Teirlinck, 2005/01/29
- Re: backup method, Luc Teirlinck, 2005/01/29
- Re: backup method, Luc Teirlinck, 2005/01/29
- Re: backup method, Luc Teirlinck, 2005/01/29
- Re: backup method, Han Boetes, 2005/01/29