[RndTbl] rsync with multi-direction delete.

Montana Quiring montanaq at gmail.com
Mon Sep 17 14:16:35 CDT 2007


Hello,

I've started working with rsync and I'm close to getting things the
way I want it, but I need a  bit of help from an expert to finish the
project.

I'm rsyncing from a directory on a server to a usb mass-storage device
attached to a different computer. I'm running an rsync daemon on the
server and I'm able to successfully synchronize the contents of a
directory on the server to a directory on the usb device.

What I want: when I delete a file or directory on either place it will
remove it from the other.
What it does now: If I delete a directory or file from the server it
removes it from the USB device (ya!) but if I remove a file/directory
from the USB device and perform an rsync it replaces the deleted
file/directory.

Here is the rsync command I'm using:
rsync --delete --delete-excluded --recursive -uv
quiringm at 192.168.1.102:/mnt/hdd/music/podcasts/ /Volumes/MEK/Podcasts/

Thanks in advance for your help,
-Montana


More information about the Roundtable mailing list