rsync –delete –files-from=list / dest/ does not delete unwanted files
Perhaps you could do this using a list of include patterns instead, and use –delete-excluded (which does as the name suggests)? Something like: rsync -r –include-from=<patternlistfile> –exclude=* –delete-excluded / dest/ If filenames are likely to contain wildcard characters (*, ? and [) then you may need to modify the Python to escape them: re.sub(“([[*?])”, r”\\\1″, … Read more