On 2009-07-28 09:35 +0200, Robert Holtzman wrote: > On Tue, 28 Jul 2009, Ron Johnson wrote: > >> On 2009-07-28 00:59, Robert Holtzman wrote: >>> Just installed rsync 3.0.3-2 and tried to backup to a usb drive >>> using a script: >>> >>> rsync -vaHz --exclude '/proc' --exclude '/sys' -- exclude '*.iso' >> >> Look *very* *carefully* at this line. >> >>> --exclude '/media' / /media/disk/laptop >> >> and see how it differs from this line. > > If you mean the space between "--" and "exclude '*.iso" that's > obviously a screw up *but* it works.
Not really, it causes all following arguments to be treated as filenames rather than options. This is likely to cause errors (because files named 'exclude', '*.iso', and '--exclude' probably do not exist), but since you've used the -v switch, the error messages drown in the list of files that are successfully transferred. > It's the "-exclude '/media'" that's the problem. No, without the previous '-- ' that would have worked. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org