README.rst 7.2 KB

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