Knowledge

Backup rotation scheme

Source 📝

22: 152:(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. 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. 1191:(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). 1145:
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
168:
Grandfather-father-son backup (GFS) is a common rotation scheme for backup media, 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
159:
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
181:
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
130:) 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 155:
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.
169:
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.
1133:
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.
134:
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.
1146:
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.
1110:
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.
1106:
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-
1035:
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.
203:
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.
1129:
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
1183: 1032:
Coverage automatically gets sparser the further back in time one goes, which approximates the likelihood of needing to do restores from past backups.
192:(or other media) will allow backups for 2 days before the last set is recycled. So, 3 tapes will give 4 days' worth of backups, and on the 4th day 1018:
Many variations are possible, and the concepts are readily extended to disc-based directories containing backups. Here are some options:
86: 58: 39: 65: 1266: 1202: 200:
is overwritten on the 9th day; 5 tapes will give 16 days, etc. Files can be restored from 1, 2, 4, 8, 16, ..., 2 days ago.
1137:
The weighted random method only has an advantage over a more systematic approach, when backups are irregular or missed.
72: 1196: 105: 149: 54: 1130: 43: 1057:
Here is an example showing coverage, including set 0, keeping at least the last 4 days, and recycling:
189: 127: 79: 1155: 32: 1241: 1126: 177:
The Tower of Hanoi rotation method is more complex. It is based on the mathematics of the
160:
be useful to have at least one older version of the data, as it would not have the error.
8: 1192: 1054:
is the sequence or serial number of a backup (also the Tower of Hanoi move number).
1122: 1271: 1114: 1118: 178: 131: 1260: 1220: 182:(2, 6, 10, ...), the third tape is used every eighth day (4, 12, 20, ...). 1160: 21: 123: 1218: 1028:
Save more than one of each set number, for greater coverage.
1177: 1175: 1172: 1239: 1025:
Save as many of the most recent backups as desired.
196:will be overwritten; 4 tapes will give 8 days, and 46:. Unsourced material may be challenged and removed. 1258: 1101: 1219:San Francisco Computer Repair (2008-01-13). 206: 1140: 534: 313: 1013: 163: 106:Learn how and when to remove this message 1085:precious.20160618.seq.737.recycle set 1 1259: 143: 44:adding citations to reliable sources 15: 1242:"Tower of Hanoi pattern for backup" 13: 1240:Alvechurch Data Ltd (2007-11-27). 14: 1283: 172: 1185:Take Control of Mac OS X Backups 1067:precious.20151026.seq.512 set 10 126:data to computer media (such as 20: 1097:precious.20160622.seq.741 set 1 1094:precious.20160621.seq.740 set 3 1091:precious.20160620.seq.739 set 1 1088:precious.20160619.seq.738 set 2 1082:precious.20160617.seq.736 set 6 1079:precious.20160609.seq.728 set 4 1076:precious.20160601.seq.720 set 5 1073:precious.20160516.seq.704 set 7 1070:precious.20160311.seq.640 set 8 1064:precious.20150205.seq.256 set 9 1022:Save a base backup as set zero. 31:needs additional citations for 1233: 1212: 1182:Kissell, Joe (February 2007). 1038:In general, backup set number 1: 1166: 1061:precious.20140515.seq.0 set 0 1181: 1102:Weighted random distribution 1050:= 0, 1, 2, 3, 4, ..., where 7: 1267:Tape-based computer storage 1149: 10: 1288: 543: 322: 138: 646: 541: 377: 320: 246: 215: 213: 207:Three-tape Hanoi schedule 1156:Off-site data protection 1141:Incremented media method 535:Five-tape Hanoi schedule 314:Four-tape Hanoi schedule 55:"Backup rotation scheme" 1127:multiplicative inverse 1014:Extensions and example 164:Grandfather-father-son 120:backup rotation scheme 1131:uniform distribution 40:improve this article 150:first in, first out 144:First in, first out 1011: 1010: 544:Day of the cycle 532: 531: 323:Day of the cycle 311: 310: 216:Day of the cycle 116: 115: 108: 90: 1279: 1252: 1251: 1249: 1248: 1237: 1231: 1230: 1228: 1227: 1221:"Backup Methods" 1216: 1210: 1209: 1207: 1201:. Archived from 1190: 1179: 539: 538: 318: 317: 211: 210: 111: 104: 100: 97: 91: 89: 48: 24: 16: 1287: 1286: 1282: 1281: 1280: 1278: 1277: 1276: 1257: 1256: 1255: 1246: 1244: 1238: 1234: 1225: 1223: 1217: 1213: 1205: 1199: 1188: 1180: 1173: 1169: 1152: 1143: 1113:One acceptable 1104: 1016: 537: 316: 209: 175: 166: 146: 141: 122:is a system of 112: 101: 95: 92: 49: 47: 37: 25: 12: 11: 5: 1285: 1275: 1274: 1269: 1254: 1253: 1232: 1211: 1208:on 2018-10-15. 1197: 1170: 1168: 1165: 1164: 1163: 1158: 1151: 1148: 1142: 1139: 1121:(possibly the 1117:is a constant 1103: 1100: 1099: 1098: 1095: 1092: 1089: 1086: 1083: 1080: 1077: 1074: 1071: 1068: 1065: 1062: 1030: 1029: 1026: 1023: 1015: 1012: 1009: 1008: 1005: 1003: 1001: 999: 997: 995: 993: 991: 989: 987: 985: 983: 981: 979: 977: 975: 972: 970: 968: 966: 964: 962: 960: 958: 956: 954: 952: 950: 948: 946: 944: 941: 940: 938: 936: 934: 932: 930: 928: 926: 924: 921: 919: 917: 915: 913: 911: 909: 907: 905: 903: 901: 899: 897: 895: 893: 891: 888: 886: 884: 882: 880: 878: 876: 873: 872: 870: 868: 866: 864: 861: 859: 857: 855: 853: 851: 849: 847: 844: 842: 840: 838: 836: 834: 832: 830: 827: 825: 823: 821: 819: 817: 815: 813: 810: 808: 806: 803: 802: 800: 798: 795: 793: 791: 789: 786: 784: 782: 780: 777: 775: 773: 771: 768: 766: 764: 762: 759: 757: 755: 753: 750: 748: 746: 744: 741: 739: 737: 735: 732: 729: 728: 726: 723: 721: 718: 716: 713: 711: 708: 706: 703: 701: 698: 696: 693: 691: 688: 686: 683: 681: 678: 676: 673: 671: 668: 666: 663: 661: 658: 656: 653: 651: 648: 644: 643: 640: 637: 634: 631: 628: 625: 622: 619: 616: 613: 610: 607: 604: 601: 598: 595: 592: 589: 586: 583: 580: 577: 574: 571: 568: 565: 562: 559: 556: 553: 550: 546: 545: 542: 536: 533: 530: 529: 526: 524: 522: 520: 518: 516: 514: 512: 509: 507: 505: 503: 501: 499: 497: 494: 493: 491: 489: 487: 485: 482: 480: 478: 476: 474: 472: 470: 468: 465: 463: 461: 458: 457: 455: 453: 450: 448: 446: 444: 441: 439: 437: 435: 432: 430: 428: 426: 423: 420: 419: 417: 414: 412: 409: 407: 404: 402: 399: 397: 394: 392: 389: 387: 384: 382: 379: 375: 374: 371: 368: 365: 362: 359: 356: 353: 350: 347: 344: 341: 338: 335: 332: 329: 325: 324: 321: 315: 312: 309: 308: 305: 303: 301: 299: 296: 294: 292: 289: 288: 286: 284: 281: 279: 277: 275: 272: 269: 268: 266: 263: 261: 258: 256: 253: 251: 248: 244: 243: 240: 237: 234: 231: 228: 225: 222: 218: 217: 214: 208: 205: 179:Tower of Hanoi 174: 173:Tower of Hanoi 171: 165: 162: 145: 142: 140: 137: 132:data retention 114: 113: 28: 26: 19: 9: 6: 4: 3: 2: 1284: 1273: 1270: 1268: 1265: 1264: 1262: 1243: 1236: 1222: 1215: 1204: 1200: 1198:0-9759503-0-4 1194: 1187: 1186: 1178: 1176: 1171: 1162: 1159: 1157: 1154: 1153: 1147: 1138: 1135: 1132: 1128: 1124: 1120: 1116: 1111: 1109: 1096: 1093: 1090: 1087: 1084: 1081: 1078: 1075: 1072: 1069: 1066: 1063: 1060: 1059: 1058: 1055: 1053: 1049: 1046:= 2 + j × 2, 1045: 1041: 1036: 1033: 1027: 1024: 1021: 1020: 1019: 1006: 1004: 1002: 1000: 998: 996: 994: 992: 990: 988: 986: 984: 982: 980: 978: 976: 973: 971: 969: 967: 965: 963: 961: 959: 957: 955: 953: 951: 949: 947: 945: 943: 942: 939: 937: 935: 933: 931: 929: 927: 925: 922: 920: 918: 916: 914: 912: 910: 908: 906: 904: 902: 900: 898: 896: 894: 892: 889: 887: 885: 883: 881: 879: 877: 875: 874: 871: 869: 867: 865: 862: 860: 858: 856: 854: 852: 850: 848: 845: 843: 841: 839: 837: 835: 833: 831: 828: 826: 824: 822: 820: 818: 816: 814: 811: 809: 807: 805: 804: 801: 799: 796: 794: 792: 790: 787: 785: 783: 781: 778: 776: 774: 772: 769: 767: 765: 763: 760: 758: 756: 754: 751: 749: 747: 745: 742: 740: 738: 736: 733: 731: 730: 727: 724: 722: 719: 717: 714: 712: 709: 707: 704: 702: 699: 697: 694: 692: 689: 687: 684: 682: 679: 677: 674: 672: 669: 667: 664: 662: 659: 657: 654: 652: 649: 645: 641: 638: 635: 632: 629: 626: 623: 620: 617: 614: 611: 608: 605: 602: 599: 596: 593: 590: 587: 584: 581: 578: 575: 572: 569: 566: 563: 560: 557: 554: 551: 548: 547: 540: 527: 525: 523: 521: 519: 517: 515: 513: 510: 508: 506: 504: 502: 500: 498: 496: 495: 492: 490: 488: 486: 483: 481: 479: 477: 475: 473: 471: 469: 466: 464: 462: 460: 459: 456: 454: 451: 449: 447: 445: 442: 440: 438: 436: 433: 431: 429: 427: 424: 422: 421: 418: 415: 413: 410: 408: 405: 403: 400: 398: 395: 393: 390: 388: 385: 383: 380: 376: 372: 369: 366: 363: 360: 357: 354: 351: 348: 345: 342: 339: 336: 333: 330: 327: 326: 319: 306: 304: 302: 300: 297: 295: 293: 291: 290: 287: 285: 282: 280: 278: 276: 273: 271: 270: 267: 264: 262: 259: 257: 254: 252: 249: 245: 241: 238: 235: 232: 229: 226: 223: 220: 219: 212: 204: 201: 199: 195: 191: 188: 183: 180: 170: 161: 157: 153: 151: 136: 133: 129: 125: 121: 110: 107: 99: 88: 85: 81: 78: 74: 71: 67: 64: 60: 57: –  56: 52: 51:Find sources: 45: 41: 35: 34: 29:This article 27: 23: 18: 17: 1245:. Retrieved 1235: 1224:. Retrieved 1214: 1203:the original 1184: 1144: 1136: 1112: 1107: 1105: 1056: 1051: 1047: 1043: 1039: 1037: 1034: 1031: 1017: 202: 197: 193: 186: 184: 176: 167: 158: 154: 147: 119: 117: 102: 96:January 2010 93: 83: 76: 69: 62: 50: 38:Please help 33:verification 30: 1042:is used at 1261:Categories 1247:2008-03-12 1226:2008-02-21 1167:References 1161:Legal hold 124:backing up 66:newspapers 1125:) of the 185:A set of 1150:See also 1119:exponent 139:Schemes 80:scholar 1272:Backup 1195:  1123:square 1115:weight 82:  75:  68:  61:  53:  1206:(PDF) 1189:(PDF) 198:Set D 194:Set C 190:tapes 128:tapes 87:JSTOR 73:books 1193:ISBN 647:Set 378:Set 247:Set 59:news 1052:seq 1044:seq 1040:set 642:32 639:31 636:30 633:29 630:28 627:27 624:26 621:25 618:24 615:23 612:22 609:21 606:20 603:19 600:18 597:17 594:16 591:15 588:14 585:13 582:12 579:11 576:10 573:09 570:08 567:07 564:06 561:05 558:04 555:03 552:02 549:01 373:16 370:15 367:14 364:13 361:12 358:11 355:10 352:09 349:08 346:07 343:06 340:05 337:04 334:03 331:02 328:01 242:08 239:07 236:06 233:05 230:04 227:03 224:02 221:01 42:by 1263:: 1174:^ 1007:E 974:E 923:D 890:D 863:C 846:C 829:C 812:C 797:B 788:B 779:B 770:B 761:B 752:B 743:B 734:B 725:A 720:A 715:A 710:A 705:A 700:A 695:A 690:A 685:A 680:A 675:A 670:A 665:A 660:A 655:A 650:A 528:D 511:D 484:C 467:C 452:B 443:B 434:B 425:B 416:A 411:A 406:A 401:A 396:A 391:A 386:A 381:A 307:C 298:C 283:B 274:B 265:A 260:A 255:A 250:A 148:A 118:A 1250:. 1229:. 1108:n 1048:j 187:n 109:) 103:( 98:) 94:( 84:· 77:· 70:· 63:· 36:.

Index


verification
improve this article
adding citations to reliable sources
"Backup rotation scheme"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message
backing up
tapes
data retention
first in, first out
Tower of Hanoi
tapes
weight
exponent
square
multiplicative inverse
uniform distribution
Off-site data protection
Legal hold


Take Control of Mac OS X Backups
ISBN
0-9759503-0-4
the original

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.