cp on BSD (actually Mac OSX)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: plug-discuss
Subject: cp on BSD (actually Mac OSX)
I wrote a script to do a nightly backup but the cp in the BSD version of
MacOSX doesn't seem to have the same options as Linux. Specifically, I
would (for this purpose) use...

cp -pruv /path/to/source /path/to/target # removing the v for 
              # the cron script unless I am logging)


but on BSD, it didn't allow the 'u' (update) option so it seems as
though I have no recourse but to copy everything all the time.

Man cp on OSX didn't give me any clues about an 'update' option

Clues?

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss