Running a Cron job every 5 minutes to back up WordPress site to Github

I am going to put one of my servers at a datacenter and start hosting client's sites. I'm going to monitor the sites using pingdom, and I wanted to provide regular backups.

I wrote a shell script that backs up the database then pushes the repositiory to a private GitHub repo every 5 minutes.

Is running a Cron job every 5 minutes going to have an impact on my server's resources and load times?
burnedfacelessAsked:
Who is Participating?
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.

Brandon LyonSenior Frontend DeveloperCommented:
"Is running a Cron job every 5 minutes going to have an impact on my server's resources and load times?"

Yes, but without knowing more about the server and workload it's hard to tell how much of one. You can use performance monitoring tools in order to alert you if resources get low. I don't have enough experience with these to recommend a particular one. I have used NewRelic in the past but it's a bit pricey. You could also do performance testing with tools like jmeter while a backup is running in order to determine how much load your servers could take while running a backup.

Alternately you can use Wordpress backup plugins and services which specialize in this sort of thing, but I imagine you wanted to sidestep the price of that. They still use resources but they also specialize in this kind of stuff.

Personally I would schedule backups less frequently and when the server load is low, perhaps at 2AM on your local time. That way your natural website traffic won't be negatively impacted.
0

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
burnedfacelessAuthor Commented:
Thanks
0
nociSoftware EngineerCommented:
As most of the stuff is in a database look for a database that can support on-line backups.
(possibly with taking a snapshot. LVM snapshot can help here if needed).
1
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
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.