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

Re: rsync problem



On 2009-07-28 02:40, Robert Holtzman wrote:
On Mon, 27 Jul 2009, Mike Bird wrote:

On Mon July 27 2009 22:59:38 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'
--exclude '/media' /  /media/disk/laptop

Does the space between the -- and the exclude exist in the script?

Yes but it works. the problem is "--exclude '/media'".


Two points:

1. Always do it the "right way", even though you *assume* you
   know the wrong way "should" work, and

2. parsers treat extraneous spaces in all sorts of nasty and
   unexpected ways.

--
Scooty Puff, Sr
The Doom-Bringer


Reply to: