README.rst 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. This is borg2!
  2. --------------
  3. Please note that this is the README for borg2 / master branch.
  4. borg2 is currently in beta testing.
  5. For the stable version's docs, please see there:
  6. https://borgbackup.readthedocs.io/en/stable/
  7. TODO: the screencasts need a remake using borg2, see there:
  8. https://github.com/borgbackup/borg/issues/6303
  9. .. |screencast_basic|
  10. .. More screencasts: `installation`_, `advanced usage`_
  11. What is BorgBackup?
  12. -------------------
  13. BorgBackup (short: Borg) is a deduplicating backup program.
  14. Optionally, it supports compression and authenticated encryption.
  15. The main goal of Borg is to provide an efficient and secure way to back up data.
  16. The data deduplication technique used makes Borg suitable for daily backups
  17. since only changes are stored.
  18. The authenticated encryption technique makes it suitable for backups to targets not
  19. fully trusted.
  20. See the `installation manual`_ or, if you have already
  21. downloaded Borg, ``docs/installation.rst`` to get started with Borg.
  22. There is also an `offline documentation`_ available, in multiple formats.
  23. .. _installation manual: https://borgbackup.readthedocs.org/en/stable/installation.html
  24. .. _offline documentation: https://readthedocs.org/projects/borgbackup/downloads
  25. Main features
  26. ~~~~~~~~~~~~~
  27. **Space efficient storage**
  28. Deduplication based on content-defined chunking is used to reduce the number
  29. of bytes stored: each file is split into a number of variable length chunks
  30. and only chunks that have never been seen before are added to the repository.
  31. A chunk is considered duplicate if its id_hash value is identical.
  32. A cryptographically strong hash or MAC function is used as id_hash, e.g.
  33. (hmac-)sha256.
  34. To deduplicate, all the chunks in the same repository are considered, no
  35. matter whether they come from different machines, from previous backups,
  36. from the same backup or even from the same single file.
  37. Compared to other deduplication approaches, this method does NOT depend on:
  38. * file/directory names staying the same: So you can move your stuff around
  39. without killing the deduplication, even between machines sharing a repo.
  40. * complete files or time stamps staying the same: If a big file changes a
  41. little, only a few new chunks need to be stored - this is great for VMs or
  42. raw disks.
  43. * The absolute position of a data chunk inside a file: Stuff may get shifted
  44. and will still be found by the deduplication algorithm.
  45. **Speed**
  46. * performance-critical code (chunking, compression, encryption) is
  47. implemented in C/Cython
  48. * local caching of files/chunks index data
  49. * quick detection of unmodified files
  50. **Data encryption**
  51. All data can be protected client-side using 256-bit authenticated encryption
  52. (AES-OCB or chacha20-poly1305), ensuring data confidentiality, integrity and
  53. authenticity.
  54. **Obfuscation**
  55. Optionally, borg can actively obfuscate e.g. the size of files / chunks to
  56. make fingerprinting attacks more difficult.
  57. **Compression**
  58. All data can be optionally compressed:
  59. * lz4 (super fast, low compression)
  60. * zstd (wide range from high speed and low compression to high compression
  61. and lower speed)
  62. * zlib (medium speed and compression)
  63. * lzma (low speed, high compression)
  64. **Off-site backups**
  65. Borg can store data on any remote host accessible over SSH. If Borg is
  66. installed on the remote host, big performance gains can be achieved
  67. compared to using a network filesystem (sshfs, nfs, ...).
  68. **Backups mountable as filesystems**
  69. Backup archives are mountable as userspace filesystems for easy interactive
  70. backup examination and restores (e.g. by using a regular file manager).
  71. **Easy installation on multiple platforms**
  72. We offer single-file binaries that do not require installing anything -
  73. you can just run them on these platforms:
  74. * Linux
  75. * macOS
  76. * FreeBSD
  77. * OpenBSD and NetBSD (no xattrs/ACLs support or binaries yet)
  78. * Cygwin (experimental, no binaries yet)
  79. * Linux Subsystem of Windows 10 (experimental)
  80. **Free and Open Source Software**
  81. * security and functionality can be audited independently
  82. * licensed under the BSD (3-clause) license, see `License`_ for the
  83. complete license
  84. Easy to use
  85. ~~~~~~~~~~~
  86. For ease of use, set the BORG_REPO environment variable::
  87. $ export BORG_REPO=/path/to/repo
  88. Create a new backup repository (see ``borg rcreate --help`` for encryption options)::
  89. $ borg rcreate -e repokey-aes-ocb
  90. Create a new backup archive::
  91. $ borg create Monday1 ~/Documents
  92. Now doing another backup, just to show off the great deduplication::
  93. $ borg create -v --stats Monday2 ~/Documents
  94. Repository: /path/to/repo
  95. Archive name: Monday2
  96. Archive fingerprint: 7714aef97c1a24539cc3dc73f79b060f14af04e2541da33d54c7ee8e81a00089
  97. Time (start): Mon, 2022-10-03 19:57:35 +0200
  98. Time (end): Mon, 2022-10-03 19:57:35 +0200
  99. Duration: 0.01 seconds
  100. Number of files: 24
  101. Original size: 29.73 MB
  102. Deduplicated size: 520 B
  103. Helping, Donations and Bounties, becoming a Patron
  104. --------------------------------------------------
  105. Your help is always welcome!
  106. Spread the word, give feedback, help with documentation, testing or development.
  107. You can also give monetary support to the project, see there for details:
  108. https://www.borgbackup.org/support/fund.html
  109. Links
  110. -----
  111. * `Main Web Site <https://borgbackup.readthedocs.org/>`_
  112. * `Releases <https://github.com/borgbackup/borg/releases>`_,
  113. `PyPI packages <https://pypi.python.org/pypi/borgbackup>`_ and
  114. `ChangeLog <https://github.com/borgbackup/borg/blob/master/docs/changes.rst>`_
  115. * `Offline Documentation <https://readthedocs.org/projects/borgbackup/downloads>`_
  116. * `GitHub <https://github.com/borgbackup/borg>`_ and
  117. `Issue Tracker <https://github.com/borgbackup/borg/issues>`_.
  118. * `Web-Chat (IRC) <https://web.libera.chat/#borgbackup>`_ and
  119. `Mailing List <https://mail.python.org/mailman/listinfo/borgbackup>`_
  120. * `License <https://borgbackup.readthedocs.org/en/stable/authors.html#license>`_
  121. * `Security contact <https://borgbackup.readthedocs.io/en/latest/support.html#security-contact>`_
  122. Compatibility notes
  123. -------------------
  124. EXPECT THAT WE WILL BREAK COMPATIBILITY REPEATEDLY WHEN MAJOR RELEASE NUMBER
  125. CHANGES (like when going from 0.x.y to 1.0.0 or from 1.x.y to 2.0.0).
  126. NOT RELEASED DEVELOPMENT VERSIONS HAVE UNKNOWN COMPATIBILITY PROPERTIES.
  127. THIS IS SOFTWARE IN DEVELOPMENT, DECIDE YOURSELF WHETHER IT FITS YOUR NEEDS.
  128. Security issues should be reported to the `Security contact`_ (or
  129. see ``docs/support.rst`` in the source distribution).
  130. .. start-badges
  131. |doc| |build| |coverage| |bestpractices| |bounties|
  132. .. |bounties| image:: https://api.bountysource.com/badge/team?team_id=78284&style=bounties_posted
  133. :alt: Bounty Source
  134. :target: https://www.bountysource.com/teams/borgbackup
  135. .. |doc| image:: https://readthedocs.org/projects/borgbackup/badge/?version=stable
  136. :alt: Documentation
  137. :target: https://borgbackup.readthedocs.org/en/stable/
  138. .. |build| image:: https://github.com/borgbackup/borg/workflows/CI/badge.svg?branch=master
  139. :alt: Build Status (master)
  140. :target: https://github.com/borgbackup/borg/actions
  141. .. |coverage| image:: https://codecov.io/github/borgbackup/borg/coverage.svg?branch=master
  142. :alt: Test Coverage
  143. :target: https://codecov.io/github/borgbackup/borg?branch=master
  144. .. |screencast_basic| image:: https://asciinema.org/a/133292.png
  145. :alt: BorgBackup Basic Usage
  146. :target: https://asciinema.org/a/133292?autoplay=1&speed=1
  147. :width: 100%
  148. .. _installation: https://asciinema.org/a/133291?autoplay=1&speed=1
  149. .. _advanced usage: https://asciinema.org/a/133293?autoplay=1&speed=1
  150. .. |bestpractices| image:: https://bestpractices.coreinfrastructure.org/projects/271/badge
  151. :alt: Best Practices Score
  152. :target: https://bestpractices.coreinfrastructure.org/projects/271
  153. .. end-badges