Backup rotation scheme

A backup rotation scheme is a system of backing up data to computer media (such as tapes) that minimizes, by re-use, the number of media used. The scheme determines how and when each piece of removable storage is used for a backup job and how long it is retained once it has backup data stored on it. Different techniques have evolved over time to balance data retention and restoration needs with the cost of extra data storage media. Such a scheme can be quite complicated if it takes incremental backups, multiple retention periods, and off-site storage into consideration.

Schemes

First in, first out

A first in, first out (FIFO) backup scheme saves new or modified files onto the "oldest" media in the set, i.e. the media that contain the oldest and thus least useful previously backed up data.[1] Performing a daily backup onto a set of 14 media, the backup depth would be 14 days. Each day, the oldest media would be inserted when performing the backup. This is the simplest rotation scheme and is usually the first to come to mind.

This scheme has the advantage that it retains the longest possible tail of daily backups. It can be used when archived data is unimportant (or is retained separately from the short-term backup data) and data before the rotation period is irrelevant.

However, this scheme suffers from the possibility of data loss: suppose, an error is introduced into the data, but the problem is not identified until several generations of backups and revisions have taken place. Thus when the error is detected, all the backup files contain the error. It would then be useful to have at least one older version of the data, as it would not have the error.

Grandfather-father-son

Grandfather-father-son backup (GFS) is a common rotation scheme for backup media,[1] in which there are three or more backup cycles, such as daily, weekly and monthly. The daily backups are rotated on a 3-months basis using a FIFO system as above. The weekly backups are similarly rotated on a bi-yearly basis, and the monthly backup on a yearly basis. In addition, quarterly, half-yearly, and/or annual backups could also be separately retained. Often some of these backups are removed from the site for safekeeping and disaster recovery purposes.

Tower of Hanoi

The Tower of Hanoi rotation method is more complex. It is based on the mathematics of the Tower of Hanoi puzzle, using a recursive method to optimize the back-up cycle. Every tape corresponds to a disk in the puzzle, and every disk movement to a different peg corresponds with a backup to that tape. So the first tape is used every other day (1, 3, 5, 7, 9, ...), the second tape is used every fourth day (2, 6, 10, ...), the third tape is used every eighth day (4, 12, 20, ...).[2]

A set of n tapes (or other media) will allow backups for 2n−1 days before the last set is recycled. So, 3 tapes will give 4 days' worth of backups, and on the 4th day Set C will be overwritten; 4 tapes will give 8 days, and Set D is overwritten on the 9th day; 5 tapes will give 16 days, etc. Files can be restored from 1, 2, 4, 8, 16, ..., 2n−1 days ago.[3]

The following tables show which tapes are used on which days of various cycles. A disadvantage of the method is that half the backups are overwritten after only two days.

Three-tape Hanoi schedule

Day of the cycle
01 02 03 04 05 06 07 08
Set A A A A
B B
C C

Four-tape Hanoi schedule

Day of the cycle
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16
Set A A A A A A A A
B B B B
C C
D D

Five-tape Hanoi schedule

Day of the cycle
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Set A A A A A A A A A A A A A A A A
B B B B B B B B
C C C C
D D
E E

Extensions and example

Many variations are possible, and the concepts are readily extended to disc-based directories containing backups. Here are some options:

  • Save a base backup as set zero.
  • Save as many of the most recent backups as desired.
  • Save more than one of each set number, for greater coverage.

Coverage automatically gets sparser the further back in time one goes, which approximates the likelihood of needing to do restores from past backups.

And Tower of Hanoi has the huge advantage of freeing implementers from having to deal with managing hourly, daily, weekly, monthly, quarterly or annual management strategies.

In general, backup set number set is used at seq = 2set−1 + j × 2set, j = 0, 1, 2, 3, 4, ..., where seq is the sequence or serial number of a backup (also the Tower of Hanoi move number).

Here is an example showing coverage, including set 0, keeping at least the last 4 days, and recycling:

  • precious.20140515.seq.0 set 0
  • precious.20150205.seq.256 set 9
  • precious.20151026.seq.512 set 10
  • precious.20160311.seq.640 set 8
  • precious.20160516.seq.704 set 7
  • precious.20160601.seq.720 set 5
  • precious.20160609.seq.728 set 4
  • precious.20160617.seq.736 set 6
  • precious.20160618.seq.737.recycle set 1
  • precious.20160619.seq.738 set 2
  • precious.20160620.seq.739 set 1
  • precious.20160621.seq.740 set 3
  • precious.20160622.seq.741 set 1

Weighted random distribution

An alternative arrangement is to keep generations distributed across all points in time is by deleting (or overwriting) past generations (except the oldest and the most-recent-n generations) when necessary in a weighted-random fashion. For each deletion, the weight assigned to each deletable generation corresponds to the probability of it being deleted.

One acceptable weight is a constant exponent (possibly the square) of the multiplicative inverse of the duration (possibly expressed in the number of days) between the dates of the generation and the generation preceding it. Using a larger exponent leads to a more uniform distribution of generations, whereas a smaller exponent leads to a distribution with more recent and fewer older generations. This technique probabilistically ensures that past generations are always distributed across all points in time as is desired.

The weighted random method only has an advantage over a more systematic approach, when backups are irregular or missed.

Incremented media method

This method has many variations and names. A set of numbered media is used until the end of the cycle. Then the cycle is repeated using media numbered the same as the previous cycle, but incremented by one. The lowest numbered tape from the previous cycle is retired and kept permanently. Thus one has access to every backup for one cycle and to one backup per cycle before that. This method has the advantage of ensuring even media wear, but requires a schedule to be precalculated.

See also

References

  1. ^ a b Kissell, Joe (February 2007). Take Control of Mac OS X Backups (PDF) (Version 2.0 ed.). Ithaca, NY: TidBITS Electronic Publishing. pp. 18-20 (The Archive), 24 (client-server), 82-83 (archive file), 112-114 (Off-site storage backup rotation scheme), 126-141 (old Retrospect terminology and GUI—still used in Windows variant), 165 (client-server), 128 (subvolume—later renamed Favorite Folder in Macintosh variant). ISBN 0-9759503-0-4. Archived from the original (PDF) on 2018-10-15.
  2. ^ San Francisco Computer Repair (2008-01-13). "Backup Methods". Retrieved 2008-02-21.
  3. ^ Alvechurch Data Ltd (2007-11-27). "Tower of Hanoi pattern for backup". Retrieved 2008-03-12.

Read other articles:

DholaviraBagian dari situs yang telah digaliLokasiKhadirbet, Distrik Kutch, IndiaJenisPemukiman pendudukLuas47 ha (120 ekar)SejarahPeriodeHarappa 1 hingga Harappa 5BudayaPeradaban Lembah Sungai IndusCatatan situsAkses umumYa Dholavira (Gujarati: ધોળાવીરા) adalah suatu situs arkeologi di Khadirbet, Taluka Bhachau, Distrik Kutch, negara bagian Gujarat di India Barat, yang namanya digunakan pada desa yang terletak sejauh 1 kilometer (0,62 mi) di selatan. Desa ...

 

 

Artikel ini sedang dikembangkan sehingga isinya mungkin kurang lengkap atau belum diwikifikasi. Mohon untuk sementara jangan menyunting halaman ini untuk menghindari konflik penyuntingan. Pesan ini dapat dihapus jika halaman ini sudah tidak disunting dalam beberapa jam. Jika Anda adalah penyunting yang menambahkan templat ini, harap diingat untuk menghapusnya setelah selesai atau menggantikannya dengan {{Under construction}} di antara masa-masa menyunting Anda. Halaman ini...

 

 

Music genre developed in Laos This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Lam luang – news · newspapers · books · scholar · JSTOR (May 2022) (Learn how and when to remove this template message) Lao morlam musicians Lam Lueang or Lam Lüang is a musical genre developed in Laos. Inspired by Thai music, it ...

WW2 Royal Italian Army formation 2nd Infantry Division Sforzesca2nd Infantry Division Sforzesca insigniaActive1940 - 1943Disbanded1943Country Kingdom of ItalyBranch Royal Italian ArmyRoleInfantrySizeDivisionGarrison/HQNovara, ItalyEngagementsWorld War II Battle of France Greco-Italian War Eastern Front Yugoslav Front InsigniaIdentificationsymbol Sforzesca Division gorget patchesMilitary unit The 2nd Infantry Division Sforzesca (Italian: 2ª Divisione di fanteria Sforzesca) was a inf...

 

 

Murale in Corea del Nord Il realismo socialista è un movimento artistico e culturale nato nell'Unione Sovietica nel 1934 e poi allargatosi a tutti i paesi socialisti del centro ed est Europa. La funzione principale era quella di avvicinare l'espressione artistica alla cultura delle classi proletarie e celebrare il progresso socialista. La prima formulazione ufficiale si ebbe al Congresso degli Scrittori e degli Artisti Sovietici a Mosca nel 1934, ad opera di Maksim Gor'kij. Questi dichiarò ...

 

 

Cet article est une ébauche concernant la peinture, les requins, Cuba et la National Gallery of Art. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Watson et le RequinArtiste John Singleton CopleyDate 1778Type Peinture d'histoireTechnique Huile sur toileDimensions (H × L) 182,1 × 229,7 cmMouvement RomantismeLocalisation National Gallery of Art modifier - modifier le code - modifier Wi...

North Indian Ocean cyclone in 2009 This article needs to be updated. Please help update this article to reflect recent events or newly available information. (October 2015) Severe Cyclonic Storm AilaSevere cyclonic storm (IMD scale)Category 1 tropical cyclone (SSHWS)Severe Cyclonic Storm Aila at peak intensityFormedMay 25, 2009DissipatedMay 27, 2009 Highest winds3-minute sustained: 110 km/h (70 mph) 1-minute sustained: 120 km/h (75 mph) Lowest pressure968 hPa (mbar); 28.59 inHg Fatal...

 

 

Каменный век↑ До появления рода Homo (Плиоцен) Палеолит Ранний палеолит Род Homo Освоение огня Каменные орудия Средний палеолит Homo neanderthalensis Homo sapiens Выход из Африки Поздний палеолит Копьеметалка Behavioral modernity[en] Одомашнивание собак Эпипалеолит Мезолит Микролиты Лук Долблёнка �...

 

 

Untuk Semen Padang sebagai perusahaan, lihat Semen Padang (perusahaan). Semen Padang FCNama lengkapSemen Padang Football ClubJulukanKabau SirahNama singkatSPFCKota/KabupatenKota PadangNegara IndonesiaFederasiPSSIBerdiri30 November 1980; 43 tahun lalu (1980-11-30)StadionGelanggang Olahraga Haji Agus Salim(Kapasitas: 20,000)PemilikPT Kabau Sirah Semen PadangCEO Win BernadinoPelatih Hendri SusiloLigaLiga 12023-24Liga 2, Runner-up (Promosi)Situs webSitus web resmi klubKelompok suporterS...

Cet article est une ébauche concernant la sociologie et les techniques, les sciences appliquées ou la technologie. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Consultez la liste des tâches à accomplir en page de discussion. Nomade numérique travaillant dans un restaurant. Travail d'ordinateur portable dans un lit d'hôtel. Nomade numérique en Thaïlande. Le nomadisme numérique, nomadisme digital ou mo...

 

 

2010 music video game 2010 video gameRock Band 3Developer(s)Harmonix[a]Publisher(s)Harmonix[b]Director(s)Daniel SussmanJosh RandallProducer(s)Michael VerretteRobert W. LindsleyDesigner(s)Dan TeasdaleSylvain DubrofskyBrian ChanCasey MaloneProgrammer(s)Avida MichaudJames Wiley FlemingDan SchmidtJohn EskewGeoff PitschArtist(s)Peter A. MacDonaldWriter(s)Helen McWilliamsSeriesRock BandPlatform(s)Nintendo DSPlayStation 3Xbox 360WiiReleaseNA: October 26, 2010[2]AU: October 28...

 

 

Yakama tribal leader KamiakinDrawing by Gustav Sohon (1855). Credit: Washington State Historical SocietyBornKamiakin: He won't go1800near Starbuck, WashingtonDied1877Rock Lake, WashingtonOccupationTribal leaderKnown forLeading resistance against encroaching settlers Kamiakin (1800–1877) (Yakama) was a leader of the Yakama, Palouse, and Klickitat peoples east of the Cascade Mountains in what is now southeastern Washington state. In 1855, he was disturbed by threats of the Territorial Go...

Stock exchange based in the Cayman Islands This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Cayman Islands Stock Exchange – news · newspapers · books · scholar · JSTOR (February 2020) Cayman Islands Stock ExchangeTypeStock ExchangeLocationGeorge Town, Cayman Islands, Cayman IslandsCoordinates19°18�...

 

 

Видикон диаметром 2/3 дюйма фирмы «Matsushita» Видико́н (англ. Vidicon, от лат. video — вижу и др.-греч. εἰκών — изображение) — передающая телевизионная трубка с накоплением заряда, действие которой основано на внутреннем фотоэффекте. Наиболее распространённый тип пере...

 

 

Photo tirée de The Story of the Kelly Gang (1906) Un long métrage (également écrit long-métrage) est un film de cinéma d'une durée significative, dont la définition précise dépend des normes reconnues selon les pays ou organisations. Histoire Définition En France, selon les textes en vigueur du Centre national du cinéma et de l'image animée, la durée d'un long métrage est plus exactement supérieur ou égal à 58 minutes et 29 secondes, c'est-à-dire l'équivalent d'une bobine ...

此條目可参照英語維基百科相應條目来扩充。 (2021年5月6日)若您熟悉来源语言和主题,请协助参考外语维基百科扩充条目。请勿直接提交机械翻译,也不要翻译不可靠、低品质内容。依版权协议,译文需在编辑摘要注明来源,或于讨论页顶部标记{{Translated page}}标签。 约翰斯顿环礁Kalama Atoll 美國本土外小島嶼 Johnston Atoll 旗幟颂歌:《星條旗》The Star-Spangled Banner約翰斯頓環礁�...

 

 

Butte in Glen Canyon National Recreation Area in Wayne Canyon, Utah, United States Ekker ButteEkker Butte and Green River, from NNEHighest pointElevation6,260 ft (1,910 m)[1]Prominence926 ft (282 m)[1]Parent peakCleopatras Chair (6,520 ft)[1]Isolation5.34 mi (8.59 km)[1]Coordinates38°17′12″N 109°59′05″W / 38.2866751°N 109.9847359°W / 38.2866751; -109.9847359[2]GeographyEkker ButteLoc...

 

 

Ecoregions of the world, spanning all land area (terrestrial) of the planet, were first defined and mapped in 2001[1] and subsequently revised in 2017.[2] Later, freshwater ecoregions[3] and marine ecoregions[4] of the world were identified. Within India, there are 46 terrestrial ecoregions, 14 freshwater ecoregions, and 6 marine ecoregions. Terrestrial ecoregions The terrestrial ecoregions of the world include 45 ecoregions that fall entirely or partly within...

Town in Groningen, NetherlandsHoogezandTownProtestant Church in 2008 FlagCoat of armsHoogezandLocation of Hoogezand in the province of GroningenCoordinates: 53°9′26″N 6°45′12″E / 53.15722°N 6.75333°E / 53.15722; 6.75333CountryNetherlandsProvinceGroningenMunicipalityMidden-GroningenPopulation (2023)22,080Major roadsA7 N385 N386 Satellite photo of the area Hoogezand is a town in the municipality of Midden-Groningen, in the province of Groningen in northe...

 

 

الدوري السوفييتي الممتاز الجهة المنظمة الاتحاد السوفيتي لكرة القدم تاريخ الإنشاء 22 مايو 1936  الرياضة كرة القدم البلد  الاتحاد السوفيتي انتهى 1991  أحدث بطل سسكا موسكو (اللقب السابع) (1991) الأكثر فوزا دينامو كييف (13 لقباً) يتأهل إلى دوري أبطال أوروبا كأس الكؤوس الأوروبية...