From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OIIyM-0004ml-Bo for garchives@archives.gentoo.org; Sat, 29 May 2010 10:08:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E65DE0B9B for ; Sat, 29 May 2010 10:08:53 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 63F87E09F4 for ; Sat, 29 May 2010 09:33:28 +0000 (UTC) Received: by wyf19 with SMTP id 19so471995wyf.40 for ; Sat, 29 May 2010 02:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=FpV1kjREP+flrt9M6VX92OYnKus+ccsM/XEIqJ8G3rI=; b=TUxnGNZzc+8L4iCOPjoKe8Dlpcu9FDghx+Gn6WJgtZUjMoHnTSpIIeHQYIEB3ysqhY Dk6pAZnzeGaRa0fM/ugJQcF2eBf3Mvs8rORvgfCJNt6VAEDbV+7NkKbjtHxbOaovDSJi ahzvbgn/h/u9nu8pz89Ux84BA/nFbsEAUbzlw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=voHjNPwl3MbY6nPyHBqkz+C/LdO4h3clSV5YyFR3VU4wlfHMDd8k5LWLskZVvm3PXI /QW1qjnCX+pgPcKeG+Cj1Bz28tti0fcE27d27/bslVo58dX5UOCEV6lgS8jdDJ4dP8d0 os1hUefIdsqSAmSDtQw8m+S9NvoDl8zuP0S4w= Received: by 10.227.129.15 with SMTP id m15mr1403704wbs.170.1275125607841; Sat, 29 May 2010 02:33:27 -0700 (PDT) Received: from nazgul.localnet (196-210-183-217-wbs-esr-2.dynamic.isadsl.co.za [196.210.183.217]) by mx.google.com with ESMTPS id l23sm23312283wbb.14.2010.05.29.02.33.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 May 2010 02:33:26 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] rsync to a USB stick Date: Sat, 29 May 2010 11:30:14 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.34-ck; KDE/4.4.3; x86_64; ; ) References: <201005291001.50752.michaelkintzios@gmail.com> In-Reply-To: <201005291001.50752.michaelkintzios@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201005291130.14417.alan.mckinnon@gmail.com> X-Archives-Salt: 2fd30444-4d83-48e7-81f5-ff18cbaa073a X-Archives-Hash: aa650766c92c0378c9d15b7695be901e On Saturday 29 May 2010 11:01:39 Mick wrote: > Hi All, > > I run: > > rsync -a -l --delete -v /mnt/Business_dir /media/sdf1 > > to back up a directory from a PC to a USB stick. However, from a cursory > look this *seems* to copy the complete directory (every time I run it) and > overwrites the USB stick. Carrying on like this it will life-expire the > USB stick in no time, plus it takes ages to complete as it copies over > every single file again and again. > > Is there a cleverer option I can add to rsync so that it only copies new > files, overwrites older versions of the same and only deletes any files or > directories that have been deleted from the source directory? What filesystem is on the disk? If it's FAT, rsync will not benefit as FAT does not have any notion of the metadata that is on the PCs disk -- alan dot mckinnon at gmail dot com