<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">mais</journal-id><journal-title-group><journal-title xml:lang="ru">Моделирование и анализ информационных систем</journal-title><trans-title-group xml:lang="en"><trans-title>Modeling and Analysis of Information Systems</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">1818-1015</issn><issn pub-type="epub">2313-5417</issn><publisher><publisher-name>Yaroslavl State University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.18255/1818-1015-2016-4-479-491</article-id><article-id custom-type="elpub" pub-id-type="custom">mais-372</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>Оригинальные статьи</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>Articles</subject></subj-group></article-categories><title-group><article-title>Резервное копирование с хранением в базе данных</article-title><trans-title-group xml:lang="en"><trans-title>Backup with Storage in a Database</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-8117-7358</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Таранин</surname><given-names>С. М.</given-names></name><name name-style="western" xml:lang="en"><surname>Taranin</surname><given-names>S. M.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Таранин Сергей Максимович, аспирант</p><p>Ярославский государственный университет им. П.Г. Демидова, ул. Советская, 14, г. Ярославль, 150003</p></bio><bio xml:lang="en"><p>Taranin Sergey Maksimovich, graduate student</p><p>P.G. Demidov Yaroslavl State University, Sovetskaya str., 14, Yaroslavl, 150003</p></bio><email xlink:type="simple">staranin0208@yandex.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Ярославский государственный университет им. П.Г. Демидова, Ярославль</institution><country>Россия</country></aff><aff xml:lang="en"><institution>P.G. Demidov Yaroslavl State University, Yaroslavl</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2016</year></pub-date><pub-date pub-type="epub"><day>20</day><month>08</month><year>2016</year></pub-date><volume>23</volume><issue>4</issue><fpage>479</fpage><lpage>491</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Таранин С.М., 2016</copyright-statement><copyright-year>2016</copyright-year><copyright-holder xml:lang="ru">Таранин С.М.</copyright-holder><copyright-holder xml:lang="en">Taranin S.M.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.mais-journal.ru/jour/article/view/372">https://www.mais-journal.ru/jour/article/view/372</self-uri><abstract><p>В данной работе представлен обзор некоторых технологий, которые используются в современных системах резервного копирования, кратко описаны их преимущества и недостатки. Далее рассматривается подход к реализации системы резервного копирования с сохранением файлов в базе данных. Предлагается разбивать копируемые файлы на блоки фиксированной длины. Каждый блок представляет собой последовательность байт. Длина блока может быть адаптивной, т.е. меняться в зависимости от типа или размера файла. В таком виде содержимое файлов предлагается хранить в одной таблице, а информацию о них: имена, атрибуты и связи между ними – хранить в другой таблице. Сведения о сохраненных файлах и папках предлагается хранить не только в базе данных на сервере, но и на стороне клиента в некоторой иерархической структуре. Она содержит набор записей и представляет собой модель копируемой директории. Наличие такой модели позволяет отслеживать изменения в файловой системе клиента без выполнения дополнительных запросов к базе данных. В случае если файл изменен, в базу копируются только его изменившиеся блоки. При этом в модели на стороне клиента также обновляется информация, например дата изменения отредактированного документа. Удаляются записи об удаленных файлах и папках. Таким образом, уменьшается нагрузка на канал передачи данных. В статье описаны алгоритмы сохранения и восстановления данных, а также рассмотрены факторы, влияющие на скорость их работы. Наглядно показана зависимость скорости сохранения и восстановления данных от мелкости разбиения файлов, а также от структуры копируемой директории. </p></abstract><trans-abstract xml:lang="en"><p>This paper presents an overview of some technologies that are used in modern backup systems. We consider their advantages and disadvantages. Next, we consider an example of the realisation of the backup system with files store in the database. We propose to divide the copied files into blocks of fixed length. Each block is a sequence of bytes. The block length may be adaptive, i.e. it can vary depending on the type or file size. We can store the file content in one table, and information of them such as names, attributes, and relationships between them, store in another table. The information of retained files and folders can be stored also on the client side in a hierarchical structure. It is a set of records and a model of the copied directory. The presence of such a model allows to find changes of the copied directory without additional queries to the database. If a file is modified, it is copied only the changed blocks. The model is also updated on the client side. Thus, the load on the data channel reduces. This paper presents the algorithms of saving and restoring data, and describes the factors that affect to the speed of their work. It demonstrates the dependence of the rate of saving and recovery of the fineness of the partition files, as well as the structure of the copied directory. </p></trans-abstract><kwd-group xml:lang="ru"><kwd>файл</kwd><kwd>данные</kwd><kwd>резервное копирование</kwd><kwd>база данных</kwd><kwd>блок</kwd><kwd>модель</kwd></kwd-group><kwd-group xml:lang="en"><kwd>file</kwd><kwd>data</kwd><kwd>backup</kwd><kwd>database</kwd><kwd>block</kwd><kwd>model</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Казаков В. Г., Федосин С. А., “Технологии и алгоритмы резервного копирования”, Всероссийский конкурсный отбор обзорно-аналитических статей по приоритетному направлению «Информационно-телекоммуникационные системы», 2008, 1– 49.</mixed-citation><mixed-citation xml:lang="en">Kazakov V. G., Fedosin S. A., “Technologii i algoritmi reservnogo kopirovania”, Vserossiyskiy konkursniy otbor obzorno-analiticheskih statey po prioritetnomu napravleniu ”Informacionno-telekommunikacionnie sistemi”, 2008, 1–49, (in Russian).</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Алиев А. А., Самедов Р. Б., “Алгоритм создания полного резервного копирования в облачных вычислениях”, Вестник Бакинского Университета, 2013, № 4, 120–127.</mixed-citation><mixed-citation xml:lang="en">Aliev A. A., Samadov R. B., “An algorithm of a full backup in cloud computing”, Baku State University News, 2013, № 4, 120–127.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Mugoh L., Ateya I. L., Shibwabo B. K, “Continuous Data Protection Architecture as a Strategy for Reduced Data Recovery Time”, Journal of Systems Integration, 2:4 (2011), 54–69.</mixed-citation><mixed-citation xml:lang="en">Mugoh L., Ateya I. L., Shibwabo B. K, “Continuous Data Protection Architecture as a Strategy for Reduced Data Recovery Time”, Journal of Systems Integration, 2:4 (2011), 54–69.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Казаков В. Г., Федосин С. А., Плотникова Н. П., “Способ адаптивной дедупликации с применением многоуровневого индекса размещения копируемых блоков данных”, Фундаментальные исследования, 2013, № 8 (часть 6), 1322–1325.</mixed-citation><mixed-citation xml:lang="en">Kazakov V. G., Fedosin S. A., Plotnikova N. P., “Method of adaptive dedublication with multilevel block indexing”, Fundamental research, 2013, № 8 (part 6), 1322–1325.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Kathuria V., Dhamankar R., Kodavalla H., “Transaction Isolation and Lazy Commit”, IEEE 23rd International Conference on Data Enginering, 2007, 1204–1211.</mixed-citation><mixed-citation xml:lang="en">Kathuria V., Dhamankar R., Kodavalla H., “Transaction Isolation and Lazy Commit”, IEEE 23rd International Conference on Data Enginering, 2007, 1204–1211.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Curtis Preston Mugoh W., “Data Protection Strategies In Today’s Data Center”, Oracle White Paper, 2012, 1–8.</mixed-citation><mixed-citation xml:lang="en">Curtis Preston Mugoh W., “Data Protection Strategies In Today’s Data Center”, Oracle White Paper, 2012, 1–8.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Zhu N., Chiueh T., “Portable and Efficient Continuous Data Protection for Network File Servers”, Stony Brook University, 2007, 1–17.</mixed-citation><mixed-citation xml:lang="en">Zhu N., Chiueh T., “Portable and Efficient Continuous Data Protection for Network File Servers”, Stony Brook University, 2007, 1–17.</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Meyer D. T., Bolosky W. J., “A Study of Practical Deduplication”, ACM Transactions on Storage, 7:4 (2012), 1–13. DOI: 10.1145/2078861.2078864.</mixed-citation><mixed-citation xml:lang="en">Meyer D. T., Bolosky W. J., “A Study of Practical Deduplication”, ACM Transactions on Storage, 7:4 (2012), 1–13. DOI: 10.1145/2078861.2078864.</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Storer M.W., Greenan K., Long D. D. E., Miller E. L., “Secure Data Deduplication”, Proceedings of the 4th ACM international workshop on Storage security and survivability, 2008, 1–10. DOI: 10.1145/1456469.1456471.</mixed-citation><mixed-citation xml:lang="en">Storer M.W., Greenan K., Long D. D. E., Miller E. L., “Secure Data Deduplication”, Proceedings of the 4th ACM international workshop on Storage security and survivability, 2008, 1–10. DOI: 10.1145/1456469.1456471.</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Renzel K., Keller W., “Client/Server Architectures for Business Information Systems”, A Pattern Language, 1997, 1–25.</mixed-citation><mixed-citation xml:lang="en">Renzel K., Keller W., “Client/Server Architectures for Business Information Systems”, A Pattern Language, 1997, 1–25.</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Дейт К. Дж., Введение в системы баз данных, 8, Издательский дом "Вильямс", 2005.</mixed-citation><mixed-citation xml:lang="en">Date C. J., An Introduction to Database Systems, 8, Pearson Education, Inc., 2004.</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Грофф Д., Вайнберг П., Оппель Э., SQL: полное руководство, 3, Издательский дом "Вильямс", 2015.</mixed-citation><mixed-citation xml:lang="en">Groff J., Weinberg P., Oppel A., SQL The Complete Reference, 3, The McGraw-Hill Companies, 2010.</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Дейт К. Дж., SQL и реляционная теория. Как грамотно писать код на SQL, СимволПлюс, 2010.</mixed-citation><mixed-citation xml:lang="en">Date C. J., SQL and Relational Theory. How to Write Accurate SQL Code, O’Reilly Media Inc., 2009.</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Sebastian J., Aelterman S., The Art of SQL Server FILESTREAM, Simple Talk Publishing, 2012.</mixed-citation><mixed-citation xml:lang="en">Sebastian J., Aelterman S., The Art of SQL Server FILESTREAM, Simple Talk Publishing, 2012.</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Sears R., Catharine van Ingen, Gray J., “To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem?”, Technical Report MSR-TR-2006-45, 2006, 1–11.</mixed-citation><mixed-citation xml:lang="en">Sears R., Catharine van Ingen, Gray J., “To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem?”, Technical Report MSR-TR-2006-45, 2006, 1–11.</mixed-citation></citation-alternatives></ref><ref id="cit16"><label>16</label><citation-alternatives><mixed-citation xml:lang="ru">Максимов В., Козленко Л. А., Маркин С. П., Бойченко И. А., “Защищенная реляционная СУБД Линтер”, Открытые системы. СУБД, 1999, № 11–12.</mixed-citation><mixed-citation xml:lang="en">Maksimov V., Kozlenko L. A., Markin C. P., Bojchenko I. A., “Zashchishchennaya relyacionnaya SUBD Linter”, Otkrytye sistemy. SUBD, 1999, № 11–12, (in Russian).</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
