Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here's what I'm trying to do:

In essence, get files from one net storage device synced to another net storage device.

The solution was to rsync from the source net storage to a local machine. Then rsync from local machine to destination net storage.

But it just hit me. I needed files that were deleted from the source net storage to be deleted on the local machine. Does rsync mirror them iow, delete files that aren't on the destination? Or does it only reduce the amount of data transfer required?

Hope I'm making it clear?

share|improve this question
up vote 15 down vote accepted

there's a --delete option. without this, it won't delete old files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.