OK, another Linux question. I’ve been looking into the rsync command. And I see that it can copy only files that has changed and the new files that were created. But to truly keep the files in sync (mirrored) does rsync remove the deleted files?
That is the first step to using
Last time I checked, to make a mirror (i.e. allowing to also delete files on the destination) you just have to choose the appropriate command line options for the
You can read the
rsync manual here.
this was one of the first questions i had when thinking about using rsync as well. i added the --delete option to mine after the single letter options. so mine is
rsync -rahP --delete <source> <destination>. i’m pretty sure i got that from the arch wiki: