Tip: Stop A Costly Water Backup Before It Happens!
The best was to prevent your sewer lines from backing up would be to have your sewer lines flushed, you can also go one step further and have your sewer lines inspected with a pipe or vessel video camera to detect any possible damage, cracks, or tree roots that may be causing problems with the sewer line. It is important to have your sewer lines flushed every few years to avoid costly sewer backups.
Another method that can be used to minimize the damage but not prevent a sewer backup would be to install a water alarm for around $15 which you can pick up at your local hardware store. Install the alarm in the lowest discharge location in your house, this is usually the basement bathroom. When the backup occurs the alarm will be activated, you will want to shut off the water supply as soon as possible to prevent any further damage.