Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] rsync to a USB stick
Date: Sat, 29 May 2010 10:08:54
Message-Id: 201005291130.14417.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] rsync to a USB stick by Mick
1 On Saturday 29 May 2010 11:01:39 Mick wrote:
2 > Hi All,
3 >
4 > I run:
5 >
6 > rsync -a -l --delete -v /mnt/Business_dir /media/sdf1
7 >
8 > to back up a directory from a PC to a USB stick. However, from a cursory
9 > look this *seems* to copy the complete directory (every time I run it) and
10 > overwrites the USB stick. Carrying on like this it will life-expire the
11 > USB stick in no time, plus it takes ages to complete as it copies over
12 > every single file again and again.
13 >
14 > Is there a cleverer option I can add to rsync so that it only copies new
15 > files, overwrites older versions of the same and only deletes any files or
16 > directories that have been deleted from the source directory?
17
18 What filesystem is on the disk?
19
20 If it's FAT, rsync will not benefit as FAT does not have any notion of the
21 metadata that is on the PCs disk
22
23
24 --
25 alan dot mckinnon at gmail dot com