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

I'm using rsync to move one directory to another. Is there some way to get rsync to incrementally delete a file from the sender after it has copied it to the reciever?

share|improve this question

1 Answer 1

up vote 16 down vote accepted

(answering my own question here :) )

The --remove-source-files will do this. :)

share|improve this answer
Thank you. By this option files just delete. How to delete directories with file deletion? –  shgnInc Jan 11 at 6:04

Your Answer


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.