Re: rsync syntax question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Stephen
Date:  
To: Main PLUG discussion list
Subject: Re: rsync syntax question
what Ed said... :-)

On Wed, Jun 27, 2012 at 3:45 PM, Ed <> wrote:
> rsync -avH --progress dirname/ webhostname:www/differentdirname
>
> add the trailing / and it works on the contents - see the section on Usage:
> http://www.samba.org/ftp/rsync/rsync.html
>
>
> On Wed, Jun 27, 2012 at 3:36 PM,  <> wrote:
>>
>> How can I modify the following syntax to copy a directory
>> to a different directory name?
>>
>> I currently use this:
>>
>> rsync -avH --progress dirname webhostname:www/
>>
>> Which works fine to update the contents of dirname.
>> But how could I modify this syntax so that it would
>> copy the contents of "dirname" to "differentdirname" ?
>>
>>
>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list -
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss




--
A mouse trap, placed on top of your alarm clock, will prevent you from
rolling over and going back to sleep after you hit the snooze button.

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