The preferred method is the use of a back-flow valve. Another way to prevent sewer backup in your home is to plug or cap all sewer openings in the basement. This includes floor drains, toilets, sinks, showers, etc. After lifting toilets and taking off sink traps, you can cap openings with wooden plugs, expandable plugs, or screwed caps or by other methods.