Myself, to prevent my bike clothes from getting smelly, luckily I have an office so behind the door, I have three hooks on the door and two on the wall. I hang on hangers my bike clothes and with the door open, have a fan blowing on the space between the door and the wall so my clothes dries really fast. Once I get home, I also get out the bike clothes right away, hang them to dry and have a fan blowing on them. Even after a week, my clothes have absolutely no smells, although I have ridden in them for two hours a day.
For a backpack, can't help you there because I use a bag trunk, which has a waterproof cover for heavy rain (the bag is water resistant but that cover is waterproof).