Question

In: Computer Science

How do I create a backup and restore strategy for a web site and the database...

How do I create a backup and restore strategy for a web site and the database for the site?

Solutions

Expert Solution

Before answering hoe to create a backup for your website you should be aware of why do you need to create a website backup always:

1.Lets suppose one morning you woke up and saw that your website has been deleted by your web host by mistake. This is the reason that we should back up our websites as this is our responsibility to protect our website, not of web hosts.

2.By doing a backup of our website we are also protecting our websites from viruses and other malware attacks because web hosts do not keep scanning your website against viruses and other harmful malware.

3. It gives a mental peace when we know that our website is backed up and safe in case of any crash.

Strategy to the backup website and its database

1. Manual Backup

In the manual backup, we mostly do backup in our local machine only. We just save all files of our website as well as its database in our local machine. It is a very low-cost method to backup a website.

The main disadvantage of this method is that it takes a lot of time to download all files and database of a website as well as we have to make our own logics to save it in our machine so that we can easily access and manage them.and also download all updates as well when our website or database is updated.

2. By Using CPanel backups

We can use the Cpanel backup option also to backup our website as well as the database. There is a backup icon present in Cpanel from where we can simply click on the generate backup button and enter our email id. We will receive a mail when our backup is ready and then we can download it and keep in multiple hard drives or any storage media.

The main disadvantage of this method is that we have to download all updates on our website when our website or database is updated every time.

3. Backup in Cloud

This is the most efficient way of backup od any website as well as its database. Many Cloud storage providers such as AWS(Amazon Web Services). Google Cloud Platform and Microsoft Azure are there which provide website backup facilities on their cloud at a reasonable cost and guarantee us for protection of our website as well as its data from any virus or malware attack. This method of website backup should always be used.

4. Using Rsync

This method of website and its database backup is also very efficient. Rsync is simply a software which copies all files from one server to another server. It copies all files of the website to another server where we want a backup.

It also backs up the database of our website. It uses the MYSQL database for backup of database. It simply runs a script known as mysqldump which creates a backup for the database of our website.

Rsync is more effective when the second server is Linux because just by typing a simple command it automatically creates all backup of the websites along with its database as MYSQL is by default installed in Linux.


Related Solutions

Consider the design of a database for a web site of a web site of videos...
Consider the design of a database for a web site of a web site of videos that teach people how to do things by yourself, such as house renovation. We will call videos as DIY videos. First, all registered users can post DIY questions, such as “how to paint a wall”. Each DIY question is identified by a question ID, the question itself, and a list of tags (each tag is a lower case word) to annotate the question, and...
You need to design a Web Server, Database Server and a Backup server. If you had...
You need to design a Web Server, Database Server and a Backup server. If you had to choose from the following list of resources which ones would you place a priority on and state why you would do so. List these for each server type. Hint: You need to think about the functionality of the server. Based on this information, which resource would you emphasize on the most to increase the performance of the server. CPU utilization and speed Multiprocessing...
how do you restore homeostasis of the nervous system after a stroke? how do you restore...
how do you restore homeostasis of the nervous system after a stroke? how do you restore homestasis of the endocrine system after a stroke? sentences please.
what we should do to protect and secure Web Site and Web Application
what we should do to protect and secure Web Site and Web Application
Create a program that will prompt for user information for a Web site. Use a structure...
Create a program that will prompt for user information for a Web site. Use a structure to store the data. The structure will need to include the following items: First Name - string Last Name - string Full Name - string Birth Date   - int (assume format yyyymmdd) IsLeasingAutomobile - bool yearlySalary - float Create a single structure from the items listed above. Prompt for all items except "Full Name" and load the input directly into a variable based on...
Create a web site to share your travel blog stories from multiple trips. Desktop site should...
Create a web site to share your travel blog stories from multiple trips. Desktop site should have three columns, the left being navigation, middle is your text, the right is some basic facts about the location that you visited. Tablet site should have two columns, dropping the right column. Mobile phone site should have one column, with the navigation becoming the drop-down list. Create a form and use JavaScript to validate the user data. Submitting valid data should result in...
Create a web site to share your travel blog stories from multiple trips. Desktop site should...
Create a web site to share your travel blog stories from multiple trips. Desktop site should have three columns, the left being navigation, middle is your text, the right is some basic facts about the location that you visited. Tablet site should have two columns, dropping the right column. Mobile phone site should have one column, with the navigation becoming the drop-down list. In HTML, also don't worry about putting information on the columns you can just put some kind...
Create a web interface that has a backend database that takes a value of one table...
Create a web interface that has a backend database that takes a value of one table and displays it match from another table. Create a web interface, that has a backend database, the database contains two tables, one table contains courses in one curriculum, while the other table in the database has corresponding classes from another curriculum. A user should be able to pick a course from the curriculum, and the matching course from the other table should populate on...
Design an activities page to make this web site complete. a.Use your imagination to create at...
Design an activities page to make this web site complete. a.Use your imagination to create at least four activities. b.Organize these activities in a table. c.Some activities are free but some may charge some fee. d.Once again, the correct resort title and navigation menu bar shall be included.e.Include an image for each activity. Make sure the images’ size are the same.f.When mouse hovers on any image, its size will be enlarged.
Using PHP and MYSQL and with a simple customer database, how can I create a simple...
Using PHP and MYSQL and with a simple customer database, how can I create a simple log in and registration system for an ecommerce site
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT