From owner-freebsd-questions@FreeBSD.ORG Wed May 25 01:20:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C656816A41C for ; Wed, 25 May 2005 01:20:15 +0000 (GMT) (envelope-from james@tunasafedolphin.org) Received: from imf19aec.mail.bellsouth.net (imf19aec.mail.bellsouth.net [205.152.59.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3760443D48 for ; Wed, 25 May 2005 01:20:15 +0000 (GMT) (envelope-from james@tunasafedolphin.org) Received: from ibm60aec.bellsouth.net ([68.209.252.201]) by imf19aec.mail.bellsouth.net (InterMail vM.5.01.06.11 201-253-122-130-111-20040605) with ESMTP id <20050525012014.MLZQ2061.imf19aec.mail.bellsouth.net@ibm60aec.bellsouth.net>; Tue, 24 May 2005 21:20:14 -0400 Received: from [192.168.4.180] (really [68.209.252.201]) by ibm60aec.bellsouth.net (InterMail vG.1.02.00.01 201-2136-104-101-20040929) with ESMTP id <20050525012009.ZQXO11146.ibm60aec.bellsouth.net@[192.168.4.180]>; Tue, 24 May 2005 21:20:09 -0400 Message-ID: <4293D337.50708@tunasafedolphin.org> Date: Tue, 24 May 2005 21:21:59 -0400 From: James Skinner User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Garance A Drosihn References: <004001c560b7$c51c3910$d580a23f@lisac> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Lisa Casey Subject: Re: moving /var/mail to another machine X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 01:20:15 -0000 Garance A Drosihn wrote: > At 7:24 PM -0400 5/24/05, Lisa Casey wrote: > >> Hi, >> >> I want to move all of the mailboxes (all of /var/mail/*) on one >> machine to another one across a network. I need to preserve >> permissions, uid's and gud's. (It would probably be good to >> preserve modification times as well). I can move a file using >> scp, but it doesn't preserve uid/gid > > > Check the port named net/rsync . You can sync a directory from > one machine to another over ssh by using it. > You could also tar it with -p. which would preserve the permissions, and then scp it, but rsync is probably a better idea. James