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,920 points
53 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
• 46,110 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,810 points
39 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
54 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,810 points
510 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
• 57,300 points
162 views
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
264 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
• 46,110 points
940 views
0 votes
1 answer