{"id":203,"date":"2019-10-06T06:48:24","date_gmt":"2019-10-06T06:48:24","guid":{"rendered":"https:\/\/zeslecp.com\/blog\/?p=203"},"modified":"2020-10-23T00:07:31","modified_gmt":"2020-10-23T04:07:31","slug":"file-backup-how-to-be-safe-from-data-loss","status":"publish","type":"post","link":"https:\/\/zeslecp.com\/blog\/2019\/10\/06\/file-backup-how-to-be-safe-from-data-loss\/","title":{"rendered":"File backup: how to be safe from data loss"},"content":{"rendered":"\n<p>More and more valuable information is created and stored in digital format.&nbsp;At the same time, the risk of losing or ruining this data is growing.&nbsp;It\u2019s even painful to imagine that you can lose a web project, order information from an online store or database.&nbsp;The damage is huge &#8211; not only financial, but also temporary, because you have to start all over again.<\/p>\n\n\n\n<p>To secure against such incidents, file backup is used.&nbsp;In this article, we will analyze the rules that will allow you to build a simple system for copying and storing data.<\/p>\n\n\n\n<h3>Hosting Rules: Hard Drive or Cloud<\/h3>\n\n\n\n<p>First of all, you need to understand that a copy of a file located on the same media as the original, for example, on one computer in a neighboring folder, is not a backup.&nbsp;In the event of a hardware failure, both files may be damaged.<\/p>\n\n\n\n<p>Hence the&nbsp;<em>first rule<\/em>&nbsp;: copies must be placed on different physical media.<\/p>\n\n\n\n<p>Hard drive or\u00a0cloud storage is\u00a0suitable\u00a0.\u00a0In the case of the cloud, you can configure automatic backup of files.\u00a0<\/p>\n\n\n\n<p>Be sure to take into account another danger.&nbsp;If you store copies on different media, but geographically in one place, then the data may be lost due to some kind of cataclysm &#8211; loss, theft, accident, fire, flood, electromagnetic pulse.<\/p>\n\n\n\n<p>Hence the&nbsp;<em>second rule<\/em>&nbsp;: copies should be placed in different, remote from each other, places &#8211; cabinets, safes, rooms, houses, cities, countries.<\/p>\n\n\n\n<p>It should also be noted that if the backup contains confidential data, then it must be encrypted or located on a secure medium.<\/p>\n\n\n\n<h3>Rule 3\u20132\u20131<\/h3>\n\n\n\n<p>It may seem that the more copies, the better.&nbsp;This approach is rather wasteful, because all copies need to be stored somewhere and somehow taken into account.<\/p>\n\n\n\n<p>On the one hand, the unit cost of data storage is decreasing every year.&nbsp;Megabytes and gigabytes of disk space are getting cheaper.&nbsp;On the other hand, the storage of data on any media has its own cost, therefore it is unreasonable to duplicate and store redundant data.&nbsp;In addition, keeping a record of a large number of copies is troublesome, because you need to make sure that if necessary you can easily and quickly find the right one.<\/p>\n\n\n\n<p>What is the optimal number of backups?&nbsp;In practice, the rule has long been established: \u201c&nbsp;<strong>3\u20132\u20131<\/strong>&nbsp;\u201d.&nbsp;It means the following:<\/p>\n\n\n\n<ul><li><em>for reliable data storage you need to make&nbsp;<strong>three<\/strong>&nbsp;copies;<\/em><\/li><li><em>two copies must be stored on&nbsp;<strong>two<\/strong>&nbsp;different physical media;<\/em><\/li><li><em>even&nbsp;<strong>one<\/strong>&nbsp;copy &#8211; in other territorial or geographic location.<\/em><\/li><\/ul>\n\n\n\n<h3><\/h3>\n\n\n\n<h3>How often to update backups?<\/h3>\n\n\n\n<p>The answer to this question for each information system is individual and depends on how often changes are made to files.&nbsp;First of all, you need to ask yourself: for how long will data loss be critical?&nbsp;&#8211; and based on these numbers calculate the number of copies.<\/p>\n\n\n\n<p>It should be borne in mind that it is risky to rely on fresh copies only, as they may contain errors that were not noticed on time.&nbsp;It is safer to make copies at intervals for a certain period.&nbsp;However, it is worth remembering that it takes time and computational resources to complete the data copying procedure, therefore it is too irrational to carry it out too often.<\/p>\n\n\n\n<p>In most cases, archiving regular office data is sufficient once a day.&nbsp;If there are few workers in the office and the work is moderately intense, data can be archived less often.<\/p>\n\n\n\n<p>The issue of copying and storing data has already been sufficiently developed, so there are various techniques that can improve the efficiency of backups.\u00a0<\/p>\n\n\n\n<h3>How to verify the backup?<\/h3>\n\n\n\n<p>Copying data is not enough.&nbsp;You also need to make sure that the copy does not contain errors and from it, if necessary, you can easily restore the lost information.<\/p>\n\n\n\n<p>There is no single methodology for checking the integrity of a backup, since all data is different and has its own specifics, purpose, structure, and format.<\/p>\n\n\n\n<p>For zip or rar files, you can run the archive test procedure.&nbsp;Any errors will be displayed in the Diagnostic Messages window.&nbsp;For other files, you need to use a special utility to check the checksum and compare it with the checksum of the original file.<\/p>\n\n\n\n<h3>How long do backups last?<\/h3>\n\n\n\n<p>In order to save space on the media, the idea may arise &#8211; to delete the previous copy after each next file backup.&nbsp;Do not do this, as you run the risk of replacing the correct, earlier copies with copies with logical errors in the data.&nbsp;Practice proves that errors are not always detected quickly.<\/p>\n\n\n\n<p>For example, if someone in the database of an online store deletes several orders or user accounts, this may appear after a few weeks.&nbsp;If during this time a backup copy of the database was made, and the previous one was deleted, then the original data will disappear forever.<\/p>\n\n\n\n<p>To prevent such situations, it is customary to save not one but several last copies, for example, in one to two weeks.&nbsp;It is assumed that in this period, possible hidden errors should be detected.<\/p>\n\n\n\n<p>In addition to binding to past days, the storage depth can be indicated by the number of copies themselves.&nbsp;For example, store the last five or seven.&nbsp;In this case, at the next copy, delete the oldest copy.<\/p>\n\n\n\n<h3>How not to get lost in the archive of copies?<\/h3>\n\n\n\n<p>To quickly find and restore the desired backup, you need to keep a simple and clear account.&nbsp;To do this, you can apply your system for naming media, folders, files.&nbsp;For example, use some key name and return date:<\/p>\n\n\n\n<ul><li>Accounting &#8211; 2018-12-03 &#8211; 01.xlsx<\/li><li>Accounting &#8211; 2018-12-03 &#8211; 02.xlsx<\/li><li>Accounting &#8211; 2018-12-04 &#8211; 01.xlsx<\/li><li>Warehouse &#8211; 2018-12-03 &#8211; 01.xlsx<\/li><\/ul>\n\n\n\n<p>Depending on the needs, the order in the file name may be different:<\/p>\n\n\n\n<ul><li>2018-12-03 &#8211; Accounting &#8211; 01.xlsx<\/li><li>2018-12-03 &#8211; Accounting &#8211; 02.xlsx<\/li><li>2018-12-03 &#8211; Warehouse &#8211; 01.xlsx<\/li><li>2018-12-04 &#8211; Accounting &#8211; 01.xlsx<\/li><\/ul>\n\n\n\n<p>The return date is good because in the usual sorting of files and folders by name, they line up in the correct chronological order.<\/p>\n\n\n\n<p>Physical storage media can be marked, for example, by day of the week, name or number.<\/p>\n\n\n\n<h3>What is the result<\/h3>\n\n\n\n<p>Contrary to all the rules of copying and storing information, it is worthwhile to understand that even one copy is better than no copy.&nbsp;If you have a lot of heterogeneous data that needs to be updated regularly, then it makes sense to draw up a backup schedule &#8211; even if it is very simple &#8211; and follow it in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>More and more valuable information is created and stored in digital format.&nbsp;At the same time, the risk of losing or ruining this data is growing.&nbsp;It\u2019s even painful to imagine that you can lose a web project, order information from an online store or database.&nbsp;The damage is huge &#8211; not only financial, but also temporary, because [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,2],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/posts\/203"}],"collection":[{"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":0,"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"wp:attachment":[{"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zeslecp.com\/blog\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}