the --delete flag to rsync should achieve the same result.