separate sync and backup functions