Re: cp on BSD (actually Mac OSX)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Micah DesJardins
Date:  
To: PLUGDiscuss
Subject: Re: cp on BSD (actually Mac OSX)
Craig,

I would look into psync actually. It sounds like closer to what you're
looking for.

http://search.cpan.org/dist/MacOSX-File/bin/psync
http://www.dan.co.jp/cases/macosx/backup-volume.html

psync does an update copy. It compares source directory and target directory
at first, then erases items that are nonexistent on source directory if
specified and finally copies everything on source directory. Items with the
same modification date and (data fork) size remain untouched, saving time on
operation.

Micah DesJardins


> From: Craig White <>
> Reply-To:
> Date: Fri, 02 Apr 2004 11:19:36 -0700
> To:
> 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


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