How to schedule backups for development, testing, and production environments?

0 votes

I was going through website launches.I was going through website launches. I read this somewhere

Schedule backups for development, testing, and production environments

I can imagine taking backup of a database and website code.

How can someone automate and schedule backup of an entire x, y or z environment?

Jul 6, 2018 in Other DevOps Questions by Nilesh
• 6,900 points
36 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

It all depends on how you set up your environments, how complex they are, and what you are trying to back up.

How often do your environments change?

You can use something like Docker to keep track of the changes to your environments. It basically gives you version control for environments.

If you're using a hosting provider like DigitalOcean, they provide snapshots and backups of entire virtual images.

Read about rsync - https://wiki.archlinux.org/index.php/Full_system_backup_with_rsync

You could use rsync if you manually keep track of all of your config files and handle the scheduling and syncing yourself.

As for the actual site:

What's changing on your sites?

For changes to the code of a site, you should be using version control so that every single change is backed up to a repository like Github.

Most of the time though, the only thing that is changing is data in a database. Your database can easily be managed by a third party like Amazon RDS who offers automated backups. If you want to manage your own database on your own server, then you can have a cron job to automatically perform a backup of your database at scheduled times. Then you can use rsync to sync that backup to a separate machine. (You want to spread your backups across a couple of machines in different locations)

answered Jul 6, 2018 by Kalgi
• 36,870 points

Related Questions In Other DevOps Questions

0 votes
1 answer

how to check runtime for chef-client executions?

 Chef doesn't have the mechanism to save ...READ MORE

answered Jul 5, 2018 in Other DevOps Questions by DareDev
• 6,710 points
24 views
0 votes
1 answer

How to use Powershell DSC for application installation?

Occasionally folks want to be able to ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 2,620 points
31 views
0 votes
1 answer

How to get issues count based on rules in a sonar project?

There are API docs in the footer ...READ MORE

answered May 4, 2018 in Other DevOps Questions by DareDev
• 6,710 points
183 views
+1 vote
2 answers

When do we use Chef or Azure SDK to create VM and deploy in automation

The solution to the automated deployment in ...READ MORE

answered Aug 21, 2018 in Other DevOps Questions by Priyaj
• 56,140 points
115 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer

How to stop sqlplus command in unix shell script when any sql fails

One idea would be to launch the ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 36,870 points
214 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.