[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rsync problem



On Tue, 28 Jul 2009, Sven Joachim wrote:

On 2009-07-28 09:35 +0200, Robert Holtzman wrote:

On Tue, 28 Jul 2009, Ron Johnson wrote:

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.

I went back and looked at the script in my Ubuntu desktop that I copied to my Debian laptop and the space doesn't exist. I have no idea how it got into the Debian script. I *thought* I had run "cp scripts/backup" to my flash drive and then to the laptop.

Looks like you're right.

--
Bob Holtzman
AF9D 8760 0CFA F95A 6C77  E125 BF90 580F 8D54 9279
"If you think you're getting free lunch,
 check the price of the beer"


Reply to: