Re: Copy folder shell scripting
Re: Copy folder shell scripting
- Subject: Re: Copy folder shell scripting
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 24 Apr 2008 10:08:06 -0400
On Thu, Apr 24, 2008 at 9:59 AM, Mark J. Reed <email@hidden> wrote:
> On Thu, Apr 24, 2008 at 1:53 AM, ba95 <email@hidden> wrote:
> I want to copy folders "#1" and "#2", both located on HD "B", to HD "A",
> > with replacing, but only if folders #1 and #2 are different on HD "A".
>
> rsync -a /Volumes/A/Path/To/Folder/1 /Volumes/B/Path/To/Folder/1
> rsync -a /Volumes/A/Path/To/Folder/2 /Volumes/B/Path/To/Folder/2
>
> Probably a way to do that in one command line..
And indeed there is:
(cd /Volumes/A; rsync -aR Path/To/Folder/1 Path/To/Folder/2 /Volumes/B)
>
> --
> Mark J. Reed <email@hidden>
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden