Currently I am using the following command to sync other images from a
server, but that server is a master and dictates the images.
rsync -rvaWt --delete-after --force user@stage:/opt/htdocs/images
/opt/htdocs/images
On 11/6/07, Jon M. Hanson <
jon@the-hansons-az.net> wrote:
>
> For the capability to remove files not in the source directory see the man
> page and look for the --del and --delete* switches.
>
> Sent via BlackBerry from T-Mobile
>
> -----Original Message-----
> From: "Shawn Badger" <badger.shawn@gmail.com>
>
> Date: Tue, 6 Nov 2007 14:05:46
> To:"Main PLUG discussion list" <PLUG-discuss@lists.plug.phoenix.az.us>
> Subject: rsync help
>
>
> I need to sync a folder on 2 servers, sounds easy, but the catch is that
> they basically have to mirror each other. So if I deleted a file on one it
> goes away on the other, but If I add a file it shows up on both. The catch
> is that a file could be added or deleted form either system. Is there a way
> to make rsync catch these changes and make sure they get mirrored? The other
> option I am thinking about involves running a script that copies new files
> to a "holding area" and point both servers to the holding area for the sync
> source. the downside to that is I don't know how to handle deletes. I
> haven't had much luck with Google on this yet, but I am still looking.
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss