refactor backup job and add some common methods

Change-Id: I5ca07c2e062027c4a5ee7339462677714baa19f5