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
• 7,050 points
542 views

1 answer to this question.

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
• 52,360 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 6, 2018 in Other DevOps Questions by DareDev
• 6,890 points
612 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,680 points
622 views
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,458 views
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
• 52,360 points
4,817 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP