Am Freitag, 22. Juni 2018, 11:34:43 CEST schrieb to...@tuxteam.de: Thank you Tomas, and all the others for the fast response.
I believe, the --delete option will doi the trick for me. I want to sync two mail folders, so that I see my mails in Plasma and also in Trinity, so that I regularlöy sync tzhe plasma-(kmail)-folder to trinitý- (kmail)-folder with a cronjob. Sop, whern I delete a mail in plasma, it shall also be deleted in the next sync in trinity. So I am sure, as you described, the --delete option will do this. Thanks for the fast solution. Have a nice weekend Hans > As others have said, this is --delete. Options -d and -D are taken for other > things -- and I don't remember that "-d" has meant delete for quite a long > time (say 10 years or so). > > > I am sure, this option stilll exists in the actual rsync version, but I > > can not find it (although, there is a "--delete", but looks to do > > something else) > No, this is what you are looking for. As Teemu pointed out, the --delete-* > options are worth a look. For example, if you have big files (videos) which > you rename often at the source, you better use option -y. Then rsync tries > to use a suitable file at the target as basis instead of pushing the whole > thing through the wire. Now, if *that* file has been deleted before... bad > luck. So combining -y --delete-after (or better --delete-delay) can speed > up things significantly. Unless... you are memory constrained or your wire > is very fast. > > Decisions, decisions... > > ;-) > > Cheers > -- t