📜 ⬆️ ⬇️

Experienced trivia-4, or "Measuring backups?"

image The continuation of "experienced trifles." Previous parts: one , two , three .

Today I will talk about the principles of doing backup , which are lined up as a result of trial and error, and more than once saved the situation at the most seemingly unexpected moment.

Backups are an accident insurance company. Making backups is not even a rule, it is an axiom. Whatever the hardened admin is, his hand can sometimes “flinch”, and a script written with an error, or a randomly pressed button can bloat a lot of misfortunes, what can we say about sprinkled HDDs, fire and other cataclysms. Yes, backups are costly (time, resources, equipment), their momentary effect is not obvious, but the main thing that they give is the insurance of company risks. And this is worth a lot. It would seem that the statements are clear to everyone, but often a situation arises when the server is down, there is a backup, but nothing can be done, the system is not restored. And begin dancing for a tambourine with an orchestra, pulling at least some data, etc. joy

First, let's introduce and clearly separate such concepts as archiving and backup. For example, like this:

Archiving



Archiving is not necessary for everyone and not always. Most often, this question arises when the company goes beyond the “me, my friend, wife and courier” framework, and usually only concerns files, financial databases, postal databases, i.e. those documents that are not kept alive in archives (letters, orders, accounting, primary, etc.).
Archives are usually made once a year and are stored on external media somewhere in a safe, in a safe deposit box, in the country house of the general director (underline the appropriate). Everything is generally clear here, the main thing is not to forget to check the archive status at least once a year (for example, simultaneously with recording a new part, to restore some data from the old one) and monitor the media so that you can always read the archive of any depth (for example, I had a situation when it took an archive that was made 5 years ago and was stored on a tape, a streamer for which was not only broken and decommissioned, but was no longer issued. The archive was of course read, but how many nerves and connections it took was better not to recall ).
')
The last couple of years, by the way, more and more for archives we use not tapes, but banal HDDs. Their volume is enough, the speed of work is sufficient for the archive, the price is within reasonable limits, and a single connection interface (formerly IDE, now SATA) eliminates the problem of a “broken tape drive”, which is important because data can be read on almost any computer, without the involvement of special equipment (as is the case with tapes). When the IDE completely disappears, we will probably copy it to SATA (or whatever it will be after).

Backup


The task of the backup itself is to keep fresh backups, for quick recovery of “accidentally \ specially deleted”, or “burned out”, or “incorrectly configured”. If archives are usually stored for as long as the organization lives, and sometimes longer, then for backups you can enter the concept of the depth of storage , i.e. the time after which the backup will expire and can be overwritten with more recent data. Backup as a whole can be divided into two main parts: data backup and system backup , and a stand-alone backup of system content . The latter is a very extensive and specific topic, which strongly depends on the contents of which particular systems you want to back up (mail server, database, CRM, software settings, etc.), we will not describe it here.

Backup systems

Backup systems - this is when you need to backup not individual files, but the entire system, which can consist of several components (for example, special software, SQL database, file data), and restore it better in whole than in parts. Everything is quite simple here: choose the backup software that suits you (price, functionality, convenience) and back up the system so that you are guaranteed to be able to restore it, even in case of a complete server crash. All sorts of Acronis, Symantec System Recovery, etc. are suitable. It is important to remember this:

Data backup

Data backup is a backup of individual, independent data (basically it is the contents of your corporate file storage). There is no need for a lot of wisdom - take it and copy it, you can only think about the backup scheme. For example, I adhere to the following scheme:

  1. On weekends, a full backup of all data is made. The storage depth is 28 days, i.e. There are four independent full backups. Thus, for the last month we will be able to recover data for any day off.
  2. On working days, a differential backup is made, with a storage depth of 14 days. Thus, over the past two weeks we can recover data for any of the days.
  3. on the first weekend of each month, separately from the rest of the work, a monthly backup is made, with a storage depth of 12 months. This is a cross between backup and archive. On the one hand, the storage period is quite large, on the other hand, there is often a situation when you need to restore data “a couple of months ago, a maximum of six months”. As an option, you can not make the monthly backup a separate work, but simply copy the appropriate weekly.

In addition, I try to follow these rules:

Among other things, it is also fashionable to use so-called. "Instant" backups, shallow depth (1-2 days) a la VSS service in Windows, when users can choose what to restore from the latest versions of the document. This is very helpful when the user edited the document in the morning, and at lunch it deleted it and asked to restore the morning version.
You can also use the DFS system as a permanent online backup, but it is worth describing it in a separate post, which I will do later.

To be continued.

PS Let me remind you, I do not set the rules, but I share my experience, non-universal experience gained in small organizations (30-500 PCs). If you have decided to do otherwise - with pleasure I will read about it in the comments.

Source: https://habr.com/ru/post/122184/


All Articles