From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 21:47:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A84AA1065686 for ; Tue, 7 Oct 2008 21:47:24 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id 813C98FC23 for ; Tue, 7 Oct 2008 21:47:24 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 4329 invoked from network); 7 Oct 2008 21:47:24 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Oct 2008 21:47:23 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id DB27328461; Tue, 7 Oct 2008 17:47:22 -0400 (EDT) To: Xenophan References: <19850089.post@talk.nabble.com> From: Lowell Gilbert Date: Tue, 07 Oct 2008 17:47:22 -0400 In-Reply-To: <19850089.post@talk.nabble.com> (Xenophan's message of "Mon\, 6 Oct 2008 19\:40\:23 -0700 \(PDT\)") Message-ID: <441vysqdqt.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Help With [seemingly] Simple Problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 21:47:24 -0000 Xenophan writes: > Alright, this is one of those moments when a normal person is forced to > become terminal typing freak (sorry guys =)) against their will... > > I have a FreeBSD7 server box in my garage that serves the computers on my > network with files. It has been a godsend: 2 1TB SATA drives raid-1'd and I > have a peace of mind that all my files are secure in one place in the house > that has doubled as my office. > > The box has basic non-gui install of FreeBSD7 and I access it through WinSCP > from other boxes around the house. Voila! So easy! > > Well it was until I decided to bring some order to it - sort files in the > right directories. This is usually a snap in XP, but UNIX would not allow > things to be simple I guess: When I want to empty out few folders into > another folder ("DUMP") and there are same files in both folders (one I am > copying from (Downloads) and one I am moving them to(DUMP)) I get an error: > > [HTML]General failure (server should provide error description). > Error code: 4 > Error message from server: Failure > Request code: 18[/HTML] That error is being displayed by a Windows application? I'm guessing you're using Samba on the server, and that there may be more information in the Samba logs. > My guess was that it found similar named files and flipped out only leaving > me the options to skip or abort (I skipped). So I decided to do it through > command line via Putty. Friend of mine suggested this command through > bash:[HTML] mv Downloads/* .[/HTML] Sounds about right. > Effect was the same: I get a polite error notifying me that: : > [HTML]FileName.extension: Directory not empty[/HTML] In future, try to cut and paste the *exact* text from the terminal window (in this case, the Putty window). I'll take a guess, but I'm working in the dark a bit here. Are there any sub-directories in the "Downloads" directory? Do you have the permissions to remove them? Make sure that the user account (the one under which you are executing the command) has write permissions to the directories being modified. > Whoopty do! > > XP would be nice enough to give me options: name of conflicting file; sizes; > options: Abort, Overwrite, Skip > > These options are crucial because some files may have changed and I may want > to rename the file and save it as a newer version while keeping the old one. > I usually find this out by looking at the file sizes. > > Is there a way to do the same from command line? Many. I would recommend using rsync, which is available from ports. Good luck. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/