README.rst 8.0 KB

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