12

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?

17

(answering my own question here :) )

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

  • 2
    Thank you. By this option files just delete. How to delete directories with file deletion? – shgnInc Jan 11 '15 at 6:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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