From owner-freebsd-stable@FreeBSD.ORG Thu Oct 30 00:11:04 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDA481065675 for ; Thu, 30 Oct 2008 00:11:04 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id 8CD1D8FC19 for ; Thu, 30 Oct 2008 00:11:04 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 62D3019E02E; Thu, 30 Oct 2008 00:53:46 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 3EDC719E02D; Thu, 30 Oct 2008 00:53:44 +0100 (CET) Message-ID: <4908F7AB.4000205@quip.cz> Date: Thu, 30 Oct 2008 00:54:19 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Clint Olsen References: <20081029231926.GA35188@0lsen.net> In-Reply-To: <20081029231926.GA35188@0lsen.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org Subject: Re: Anyone used rsync scriptology for incremental backup? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 00:11:04 -0000 Clint Olsen wrote: > I've seen some stuff online that made it look like using hard-link trees > and then doing some rsync worked, but some of this appears to be obsoleted > by new rsync features. If anyone has a pointer, that would be much > appreciated. I think freebsd-stable@ is not the right place to ask... This is part of my script I am using for "snapshotted" backups: src_host="10.20.30.40" # ip, ip:port, host, host.example.com:873 src_user="rsync_user" src_module="module_name" pass_file="/path/to/.rsync.passwd" # file with password for rsync_user dest="/where/to/store/backups" rsync_log="/var/log/rsync_backup.log" today=`date "+%Y-%m-%d"` yesterday=`date -v -1d "+%Y-%m-%d"` dest_curr="${dest}/${today}" # current backup dir by date [today] dest_last="${dest}/${yesterday}" # last backup dir from previous day rsync -a -H --log-file=${rsync_log} --numeric-ids --password-file=${pass_file} --link-dest=${dest_last} rsync://${src_user}@${src_host}/${src_module} ${dest_curr} This script is runned daily from backup server (where backups are stored). Rsync daemon is configured and running on backed up machine. Miroslav Lachman