From owner-freebsd-questions@FreeBSD.ORG Wed Dec 22 05:36:27 2004 Return-Path: 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 B1C1716A4CE for ; Wed, 22 Dec 2004 05:36:27 +0000 (GMT) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 322B343D31 for ; Wed, 22 Dec 2004 05:36:27 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) iBM5aKv53750; Tue, 21 Dec 2004 21:36:20 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Roger Merritt" , Date: Tue, 21 Dec 2004 21:36:20 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <5.2.0.9.0.20041222121229.00a25a00@127.0.0.1> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal Subject: RE: Transferring directories over a network X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 05:36:27 -0000 Easiest way would be to simply turn on NFS and mount the old server on a directory on the new server, then use tar or cpio or cp or whatever you want. Ted > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Roger Merritt > Sent: Tuesday, December 21, 2004 9:25 PM > To: freebsd-questions@freebsd.org > Subject: Transferring directories over a network > > > I hope this isn't too common a question. I couldn't devise a good set of > keywords to use Google. > > I just received a new machine to replace my ancient server/gateway. I > decided the best way to go was to install FreeBSD 5.3, and transfer user > directories and config files using ssh over the intranet. Of course, I > overlooked the fact that you can't login to root. From the old machine, > Kepler, I used the command line: > > 'tar cf - /usr/home/onedirectory /usr/home/anotherdirectory | ssh > myname@russell tar xf -' > > Of course the user 'myname' doesn't have write permission in /usr/home. I > usually use 'ssh' to login and then 'su -', but I don't see how > to do that > in this situation. On my old 4.3 machine a workaround was to login as > 'toor', but 5.3 doesn't seem to allow that (Good Idea (tm)). > > I'm lucky enough I have room enough on the old hard drive that I can tar > the directories there, use 'scp' to transfer them to the account > on the new > machine, and then go untar them there, but if anyone can suggest a more > elegant (that is, easier) solution I'd appreciate it because I'm going to > have to go through the whole exercise again when I move the old > machine to > replace an even older and more decrepit box. > > -- > Roger > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 12/21/04 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >