From owner-freebsd-questions Tue Jan 21 16:43:53 2003 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 5529E37B401 for ; Tue, 21 Jan 2003 16:43:52 -0800 (PST) Received: from mail.adelphia.net (pa-plum1b-166.pit.adelphia.net [24.53.161.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C69043E4A for ; Tue, 21 Jan 2003 16:43:46 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([172.16.0.95]) by mail.adelphia.net (8.12.3/8.12.3) with ESMTP id h0M0j6ko001530; Tue, 21 Jan 2003 19:45:06 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E2DE92E.5060908@potentialtech.com> Date: Tue, 21 Jan 2003 19:43:26 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Grant Peel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Backups References: <000701c2c1a3$4365cbd0$6501a8c0@grant> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Grant Peel wrote: > Hi all, > > I have been researching a way to completely mirror a disk once or twice a > week. At this point, it looks like a small script using dump is in order. > > My question is for all the rsync fans. (I have installed and am reading man > pages). What would you suggest for a command line in crone to completely > mirror one disk to another (both local). Permissions, ownerships, hidden > files etc etc etc. The -a flag to rsync seems to be specially designed for the purpose you describe. Something like: 00 4 * * 1-6 root /usr/local/bin/rsync -a /orig/path/* /backup/path/ Works great for me. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message