do you keep backup job on both primaqry & sec nodes, on HA setup. (SQL Server 2012)

in HA (not synch), you have primary and secondary nodes/instances.

1)for Daily backup jobs (of databases), should you keep identical jobs on both servers? (if one fails scenario). is this best practice?
2)will below idea help to keep the job only one server/node:
If sys.fn_hadr_backup_is_preferred_replica(@dbname) <> 1 BEGIN <do not backup> ELSE <do backup> END
LVL 5
25112Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jmcgOwnerCommented:
Backup consumes resources, so it seems like a waste to do it on both servers.

Presumably, it would be better to run backup on the secondary, since the primary is the one servicing database access traffic, but if one instance has generally better access to the backup storage, that instance should be the one to back up.
25112Author Commented:
jmcg, both nodes have same amount of disk capacity (identical)

it seems doing it on secondary is best practice, based on the logical points you mentioned? then, how will you position the job to run and to backup only from secondary? (given that different DBAs might have reason to failover as needed through the week)... so the primary may switch every other day or as long as failovers happen. what is best practice how to keep and maintain jobs on both servers to accomplish this.. to backup only the secondary, judging intelligently which is the secondary at the moment.
jmcgOwnerCommented:
Can I assume you're already familiar with the appropriate MSDN article?

Configure Backup on Availability Replicas (SQL Server)

They offer up a number of different ways to select the backup, including some based on sys.fn_hadr_backup_is_preferred_replica.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
25112Author Commented:
that helped, thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.