Gentoo Archives: gentoo-user

From: Steven <apartment415@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] rsync to a USB stick
Date: Sat, 29 May 2010 09:39:40
Message-Id: AANLkTimXk50aEcKf8hDFn6R9HsMDRD4ooj1Jb2bKWxY4@mail.gmail.com
In Reply to: [gentoo-user] rsync to a USB stick by Mick
1 On Sat, May 29, 2010 at 2:01 AM, Mick <michaelkintzios@×××××.com> wrote:
2
3 > Hi All,
4 >
5 > I run:
6 >
7 > rsync -a -l --delete -v /mnt/Business_dir /media/sdf1
8 >
9 > to back up a directory from a PC to a USB stick. However, from a cursory
10 > look
11 > this *seems* to copy the complete directory (every time I run it) and
12 > overwrites the USB stick. Carrying on like this it will life-expire the
13 > USB
14 > stick in no time, plus it takes ages to complete as it copies over every
15 > single file again and again.
16 >
17 > Is there a cleverer option I can add to rsync so that it only copies new
18 > files, overwrites older versions of the same and only deletes any files or
19 > directories that have been deleted from the source directory?
20 > --
21 > Regards,
22 > Mick
23 >
24 Short answer "man rsync"
25 You'll find everything you need.
26 It is possible to sync files incrementally with rsync I just can't remember
27 how right now
28 Sorry really tired right now. Im sure someone will come a long with a more
29 appropriate answer.

Replies

Subject Author
Re: [gentoo-user] rsync to a USB stick Joshua Murphy <poisonbl@×××××.com>