Under Android, you can set a specific wifi connection as "metered" in the settings under Data Usage -> Network Restrictions. This prevents the background tasks from using the data willy-nilly.
I'm not aware of an equivalent for iOS other than manually turning automatic sync off and back on, but I'm not really an Apple guy.