The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   rsync /Volumes question (http://hintsforums.macworld.com/showthread.php?t=95918)

Hal Itosis 11-18-2008 07:15 PM

Quote:

the -d option can't apparently distinguish between an actual folder and a disk (both show up in ls as a normal directory, at any rate)
Right... but it shouldn't ever need to.
Just stop making folders in /Volumes!

(yes... you) ;)

i.e., as long as there is no folder there *now* - - - then

[[ -d $target ]] || exit 1
rsync . . .

stops rsync from making one.
Have you *tried* this yet?

tw 11-19-2008 05:31 PM

ok, well I threw the line in (since I can't see how it would hurt). :)

Hal Itosis 11-19-2008 07:25 PM

Quote:

Originally Posted by tw (Post 504212)
ok, well I threw the line in (since I can't see how it would hurt). :)

And I'll assume (when you just say "the line") that
it was done in such a way that $target is defined.
;)

tw 11-19-2008 07:32 PM

Quote:

Originally Posted by Hal Itosis (Post 504225)
And I'll assume (when you just say "the line") that
it was done in such a way that $target is defined.
;)

¿¿¿what do you mean??? shouldn't my mac just know what the appropriate target is? I mean, gosh... :p

Hal Itosis 11-19-2008 11:37 PM

... touché


All times are GMT -5. The time now is 05:46 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.