From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han Boetes Newsgroups: gmane.emacs.devel Subject: Re: backup method Date: Sat, 29 Jan 2005 23:52:37 +0100 Message-ID: <20050129225259.GT6167@boetes.org> References: <20050127000210.GA6167@boetes.org> <200501270045.j0R0jIq06197@raven.dms.auburn.edu> <20050127015432.GB6167@boetes.org> <20050128035618.GI6167@boetes.org> <20050129060851.GQ6167@boetes.org> <200501291842.j0TIgVw09020@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107039271 29259 80.91.229.6 (29 Jan 2005 22:54:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2005 22:54:31 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 29 23:54:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cv1U1-0007em-00 for ; Sat, 29 Jan 2005 23:54:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cv1gY-0006kW-64 for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2005 18:07:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cv1ff-0006Av-4s for emacs-devel@gnu.org; Sat, 29 Jan 2005 18:06:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cv1fe-0006A7-7q for emacs-devel@gnu.org; Sat, 29 Jan 2005 18:06:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cv1fe-00069Z-2N for emacs-devel@gnu.org; Sat, 29 Jan 2005 18:06:26 -0500 Original-Received: from [217.120.147.78] (helo=boetes.org) by monty-python.gnu.org with smtp (Exim 4.34) id 1Cv1SJ-0007Ol-Cx for emacs-devel@gnu.org; Sat, 29 Jan 2005 17:52:39 -0500 Original-Received: (qmail 31307 invoked by uid 1000); 29 Jan 2005 22:52:59 -0000 Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <200501291842.j0TIgVw09020@raven.dms.auburn.edu> User-Agent: Mutt/1.5.6i X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:32633 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32633 Luc Teirlinck wrote: > I believe that the correct solution in this particular case is > to make `normal-backup-enable-predicate' use a customizable list > of directories in which no backups are made, say > `no-backup-directories'. > We could then tell people that if they want remove "/temp/" or > equivalent from the list, they should set `backup-by-copying' to > t, or we could use a second customizable variable > `backup-by-copying-directories', to unlink the two problems (at > least in this particular case). Well at least we got a clearer picture of what the problem is. But let me bring some additional factors in to make it even more complicated. /tmp is word-writable Ow yes... It's trivial to setup a little script that checks for tmpfiles from cron and other software and then make symlinks to the backupfiles from the editor and get nice copies of whatever is in them. So I suggest not making backupfiles in world-writable directories. At least not in the world-writable directory itself. I setup ~/.tmp/backups as my backups dir here. Another thing to improve is that if ~/.tmp/backups doesn't exist it is created with permissions defined by umask. ~% ls -ld ~/.tmp/backups drwxr-xr-x 2 han users 4096 jan 29 16:57 /mega/home/han/.tmp/backups/ IMHO it would be better if that directory was created with 700 permissions. # Han