As a Linux Systems Admin you're responsible for not only for the server but also the data on the server. You must have a backup strategy. If you are taking responsibility for a system that someone else set up you should review the back up decision to make sure hat you understand them and that they are still appropriate. A backup is a historical versions of your data going back far enough in time to enable recover from a small or big disaster
What is Data?
Data is created by Individuals for personal use and production, and Businesses for the use and production of products and services. Data is a collection of raw facts from which conclusions may be drawn. Data is converted into more convenient forms like Digital Data. This is because of increase in data processing capabilities. Lower cost of digital storage. Affordable and faster communications technology.
Data can be categorized as either structured or unstructured data. Strucuted data is rows and columns. Unstructured data is others like instant messages, documents, web pages, rich media, invoices, audi and video, contracts, forms, images, manuals, checks, xrays, and email attachments. Over 80% of enterprise information is unstructured, while 20% is structured.
Individuals and businesses turn the data they collect into information. The Information is the intelligence and knowledge derived from data.
This data created by individuals/business must be then stored for further processing and use. The type of storage used is based on the type of data and the rate at which it is created and used.
Individuals can use hard disks (which can be internal or external), CDs, DVDs, SD cards, and thumb sticks. Businesses can: Hard disks, external disk arrays, and tape libraries.
There are three storage models for storing and using data. They can use centralized ones such as mainframe computers and storage networking. There are decentralized ones such as Client-sever models
The need for storage and growth of data comes from a US Federal law titled the Sarbanes-Oxley Act of 2002. One of the sections requires all business records, including electronic record and electronic messages must be saved for at least five years. IT departments in the Us are increasingly faced with the challenge of creating and maintaining a corporate records archive in a cost-effective fashion that satisfies the requirements put forth by the legislation
Types of backups
There are three types of backups for systems administration.
Data protection can be also based on the basis of being intact, usable, reliable, available. Or Integrity, Usability, Reliability, and Availability. Based on the CIA model, it can be rearranged as Availability, Integrity, Reliability, and Usability.
Testing backups.
“Failing to plan is panning to fail” If you have no plan that means you're planning to fail.
It's essential that your backups are tested by restoring and reviewing them at least once a year. The test should be able to perform the following:
Your backup strategy should take in account the following:
Why have a backups in the first place? They allow you to recover if your machine or server is compromised by malware or if there is a disk failure. Disks can fail without warning.
There are two example strategies and approaches to backups.
1. Store important files on local disks and back up the rest in external hard drives. 2. Store non volatile data away from the machine on the DVD or other media and have a working copy on the machine's disks
There are more ways to do proper backups. It's best to have at least 3 independent copies of the data. One of or more of those copies must be offline and at a different physical location.
Cloud Storage
Now a word about cloud storage: It's a bad idea if you do not have network access, slow connection, lose your password, get phished or hacked, or get banned. Any of that happen and your data is gone.
Other considers include that unencrypted backups can be red by the cloud provider. Cloud providers could go offline or shutdown without warning and cloud provider may be in a different legal jurisdiction to you.
In short: DO NOT TRUST THE CLOUD
How and When to do backups?
Creating backupsTo make a regualr copy use the following syntax
To make a tar version use: tar – cvzf [file.tar] [list of files to tar] or tar -xvwf [file.tar]
To make a compressed .tar (tar.gz) use: tar -czvf [file.tar.gz] target files
decompressed tar -xzvwf [far.tar.gz]
So, when to do backups?