Message from discussion
Save copy of file in another directory
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!pcn2.elta.co.IL!not-for-mail
From: Eli Zaretskii <e...@is.elta.co.il>
Newsgroups: comp.emacs,gnu.emacs.help
Subject: Re: Save copy of file in another directory
Date: Thu, 06 Dec 2001 11:35:03 +0200
Lines: 18
Message-ID: <3C0F3BC7.211D212F@is.elta.co.il>
References: <f7a73ade.0112060122.11e96d85@posting.google.com>
NNTP-Posting-Host: pcn2.elta.co.il (199.203.121.11)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1007631074 10041396 199.203.121.11 (16 [61365])
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
Eric Hobsbawm wrote:
>
> I want to set up emacs so when I save a file in my home directory
> (C:\eric) I also want to save a copy on the other drive
> (D:\Backup\eric).
>
> Ideally it should save it in the same relative place, eg save both to
> C:\eric\projects\matlab\flow\flow.m and
> D:\Backup\eric\projects\matlab\flow\flow.m, creating the directories
> if necessary.
>
> I have no idea how to do this, so all help is very welcome.
>
> Oh, I use emacs 20.7.1 on Windows NT if that matters.
This is much easier in Emacs 21.1. There, you can set up a single variable
to the name "D:/Backup/eric", and all the backup files go into that
directory.