Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 9 down vote accepted

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

share|improve this answer
add comment

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.