rsync help
JD Austin
jd at twingeckos.com
Tue Nov 6 14:29:27 MST 2007
Shawn Badger wrote:
> Thanks, but I am really looking for a bidirectional sync.
> For deleting I may be able to come up with a way to compare file
> listings and dates. Do something like if filex is older than last sync
> time and removed then remove file on other server. But I would like an
> more elegant "easy" way of doing this.
>
Rsync works in one direction.
That doesn't keep you from running it from both ends.
Your idea of using a staging area would work fine.
>
> I do that in one direction on one of my servers; I left the extra
> fluff in case you nee to exclude files or limit the bandwidth:
> rsync -avz --delete --rsh=ssh --stats --progress
> --password-file=/root/.rsyncpw
> --bwlimit=500 --exclude='*Norton\ Ghost\ Backup*'
> root at 192.168.0.103:/newdrive/* <mailto:root at 192.168.0.103:/newdrive/*>
> /newdrive
>
> --
> JD Austin
> Twin Geckos Technology Services LLC
> email: jd at twingeckos.com <mailto:jd at twingeckos.com>
> http://www.twingeckos.com
> phone/fax: 480.288.8195
>
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> <mailto:PLUG-discuss at lists.plug.phoenix.az.us>
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> <http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
JD Austin
Twin Geckos Technology Services LLC
email: jd at twingeckos.com
http://www.twingeckos.com
phone/fax: 480.288.8195
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20071106/85557784/attachment.htm
More information about the PLUG-discuss
mailing list