Re: rsync deleting directories when synchronizing

This is a discussion on Re: rsync deleting directories when synchronizing within the Rsync forums, part of the Networking and Network Related category; Wayne Davison wrote: >On Thu, Oct 20, 2005 at 02:56:42PM -0400, Liam Steacker wrote: > > >&...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-20-2005
Liam Steacker
 
Posts: n/a
Default Re: rsync deleting directories when synchronizing

Wayne Davison wrote:

>On Thu, Oct 20, 2005 at 02:56:42PM -0400, Liam Steacker wrote:
>
>
>>When we issue the above commands, rsync removes the /etc/init.d
>>directory altogether, and recreates it with only the scripts in the
>>module, thereby removing all of our existing init scripts.
>>
>>

>
>What probably happened was that /etc/init.d was a symlink (e.g. on Red
>Hat /etc/init.d is a symlink to rc.d/init.d). If this is a directory on
>the source system, rsync will remove the symlink and replaced it with
>the directory.
>
>You have two solutions: The best solution is to use the same symlinked
>directory structure in your modules as in your destination dirs.
>Alternately, you could use the --keep-dirlinks option to tell rsync to
>treat a symlink to a directory as if it were an actual directory.
>
>..wayne..
>
>


Wayne you are once again spot on, thank you very much.

>
>
>


--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0