From owner-freebsd-questions Sun Dec 8 19:21:16 2002 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 57CE437B401 for ; Sun, 8 Dec 2002 19:21:15 -0800 (PST) Received: from radzinschi.com (pcp02453773pcs.owngsm01.md.comcast.net [68.55.91.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 652F943EA9 for ; Sun, 8 Dec 2002 19:21:09 -0800 (PST) (envelope-from marco@radzinschi.com) Received: from localhost (marco@localhost.radzinschi.com [127.0.0.1]) by radzinschi.com (8.12.6/8.12.6) with ESMTP id gB93L6rM033303; Sun, 8 Dec 2002 22:21:06 -0500 (EST) (envelope-from marco@radzinschi.com) Date: Sun, 8 Dec 2002 22:21:06 -0500 (EST) From: Marco Radzinschi To: Lowell Gilbert Cc: mike , Subject: Re: Silly cvsup question. In-Reply-To: <44k7ik5b9b.fsf@be-well.ilk.org> Message-ID: <20021208221351.G33272-100000@radzinschi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 8 Dec 2002, Lowell Gilbert wrote: > mike writes: > > > Hello. i use cvsup to backup certain critical folders on the machine labs, > > to the machine labs2 automatically every night. My question is this. If i > > add new stuff to say, /home/mike (or wherever) then that gets mirrored at > > night and everything does its job as i want it to. However, if i DELETE > > something from /home/mike (or whereever) It never gets deleted from labs2. > > So its not "synching" correctly. For example i just went to zip -r > > cvsup-backup cvsup-backup on labs2, so i can pull it to XP and burn it, > > and i realized it had my library still in there which i deleted months > > ago. > > cvsup isn't going to be very good at tracking which files have been > deleted on the original, unless you are pulling from a cvs repository > (that's where it keeps information on directory contents). Otherwise, > it won't know whether a file has been deleted from the original > machine, or is a local modification on the duplicate. > > Given that you're not using cvs, you'd probably do better with rsync > for this job. You could also use other tools that can keep metadata, > like dump(8) or even use the incremental facilities of Gnu tar. This is not accurate, as the cvsup CLIENT keeps directory information for the repository. When the client is run, if a file has been added on the server, it will download it. If a file has changed on the server, it will use the rsync algorithm to synchronize the files. If the client is set to delete files, it will also delete any files that it has and which the server does not. I know because I use it at work to synchronize tens of thousands of images. Rsync works, but it does not scale very well. I had to use cvsupd and cvsup because the memory usage of rsync would grow past 512 MB and it would eventually core dump. Marco Radzinschi E-Mail: marco@radzinschi.com Sun Dec 8 22:13:51 EST 2002 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message