README.rst 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. To deduplicate, all the chunks in the same repository are considered, no
  21. matter whether they come from different machines, from previous backups,
  22. from the same backup or even from the same single file.
  23. Compared to other deduplication approaches, this method does NOT depend on:
  24. * file/directory names staying the same
  25. So you can move your stuff around without killing the deduplication,
  26. even between machines sharing a repo.
  27. * complete files or time stamps staying the same
  28. If a big file changes a little, only a few new chunks will be stored -
  29. this is great for VMs or raw disks.
  30. * the absolute position of a data chunk inside a file
  31. Stuff may get shifted and will still be found by the deduplication
  32. algorithm.
  33. **Speed**
  34. * performance critical code (chunking, compression, encryption) is
  35. implemented in C/Cython
  36. * local caching of files/chunks index data
  37. * quick detection of unmodified files
  38. **Data encryption**
  39. All data can be protected using 256-bit AES encryption, data integrity and
  40. authenticity is verified using HMAC-SHA256. Data is encrypted clientside.
  41. **Compression**
  42. All data can be compressed by lz4 (super fast, low compression), zlib
  43. (medium speed and compression) or lzma (low speed, high compression).
  44. **Off-site backups**
  45. Borg can store data on any remote host accessible over SSH. If Borg is
  46. installed on the remote host, big performance gains can be achieved
  47. compared to using a network filesystem (sshfs, nfs, ...).
  48. **Backups mountable as filesystems**
  49. Backup archives are mountable as userspace filesystems for easy interactive
  50. backup examination and restores (e.g. by using a regular file manager).
  51. **Easy installation on multiple platforms**
  52. We offer single-file binaries that do not require installing anything -
  53. you can just run them on these platforms:
  54. * Linux
  55. * Mac OS X
  56. * FreeBSD
  57. * OpenBSD and NetBSD (no xattrs/ACLs support or binaries yet)
  58. * Cygwin (not supported, no binaries yet)
  59. **Free and Open Source Software**
  60. * security and functionality can be audited independently
  61. * licensed under the BSD (3-clause) license
  62. Easy to use
  63. -----------
  64. Initialize a new backup repository and create a backup archive::
  65. $ borg init /mnt/backup
  66. $ borg create /mnt/backup::Monday ~/Documents
  67. Now doing another backup, just to show off the great deduplication::
  68. $ borg create --stats -C zlib,6 /mnt/backup::Tuesday ~/Documents
  69. Archive name: Tuesday
  70. Archive fingerprint: 387a5e3f9b0e792e91c...
  71. Start time: Tue Mar 25 12:00:10 2014
  72. End time: Tue Mar 25 12:00:10 2014
  73. Duration: 0.08 seconds
  74. Number of files: 358
  75. Original size Compressed size Deduplicated size
  76. This archive: 57.16 MB 46.78 MB 151.67 kB <--- !
  77. All archives: 114.02 MB 93.46 MB 44.81 MB
  78. For a graphical frontend refer to our complementary project `BorgWeb <https://borgbackup.github.io/borgweb/>`_.
  79. Links
  80. =====
  81. * `Main Web Site <https://borgbackup.readthedocs.org/>`_
  82. * `Releases <https://github.com/borgbackup/borg/releases>`_
  83. * `PyPI packages <https://pypi.python.org/pypi/borgbackup>`_
  84. * `ChangeLog <https://github.com/borgbackup/borg/blob/master/CHANGES.rst>`_
  85. * `GitHub <https://github.com/borgbackup/borg>`_
  86. * `Issue Tracker <https://github.com/borgbackup/borg/issues>`_
  87. * `Bounties & Fundraisers <https://www.bountysource.com/teams/borgbackup>`_
  88. * `Mailing List <https://mail.python.org/mailman/listinfo/borgbackup>`_
  89. * `License <https://borgbackup.github.io/borgbackup/authors.html#license>`_
  90. Notes
  91. -----
  92. Borg is a fork of `Attic`_ and maintained by "`The Borg collective`_".
  93. .. _Attic: https://github.com/jborg/attic
  94. .. _The Borg collective: https://borgbackup.readthedocs.org/en/latest/authors.html
  95. Differences between Attic and Borg
  96. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  97. Here's a (incomplete) list of some major changes:
  98. * more open, faster paced development (see `issue #1 <https://github.com/borgbackup/borg/issues/1>`_)
  99. * lots of attic issues fixed (see `issue #5 <https://github.com/borgbackup/borg/issues/5>`_)
  100. * less chunk management overhead via --chunker-params option (less memory and disk usage)
  101. * faster remote cache resync (useful when backing up multiple machines into same repo)
  102. * compression: no, lz4, zlib or lzma compression, adjustable compression levels
  103. * repokey replaces problematic passphrase mode (you can't change the passphrase nor the pbkdf2 iteration count in "passphrase" mode)
  104. * simple sparse file support, great for virtual machine disk files
  105. * can read special files (e.g. block devices) or from stdin, write to stdout
  106. * mkdir-based locking is more compatible than attic's posix locking
  107. * uses fadvise to not spoil / blow up the fs cache
  108. * better error messages / exception handling
  109. * better logging, screen output, progress indication
  110. * tested on misc. Linux systems, 32 and 64bit, FreeBSD, OpenBSD, NetBSD, Mac OS X
  111. Please read the `ChangeLog`_ (or ``CHANGES.rst`` in the source distribution) for more
  112. information.
  113. BORG IS NOT COMPATIBLE WITH ORIGINAL ATTIC (but there is a one-way conversion).
  114. EXPECT THAT WE WILL BREAK COMPATIBILITY REPEATEDLY WHEN MAJOR RELEASE NUMBER
  115. CHANGES (like when going from 0.x.y to 1.0.0).
  116. NOT RELEASED DEVELOPMENT VERSIONS HAVE UNKNOWN COMPATIBILITY PROPERTIES.
  117. THIS IS SOFTWARE IN DEVELOPMENT, DECIDE YOURSELF WHETHER IT FITS YOUR NEEDS.
  118. Borg is distributed under a 3-clause BSD license, see `License`_
  119. for the complete license.
  120. |doc| |build| |coverage|
  121. .. |doc| image:: https://readthedocs.org/projects/borgbackup/badge/?version=stable
  122. :alt: Documentation
  123. :target: https://borgbackup.readthedocs.org/en/stable/
  124. .. |build| image:: https://travis-ci.org/borgbackup/borg.svg
  125. :alt: Build Status
  126. :target: https://travis-ci.org/borgbackup/borg
  127. .. |coverage| image:: https://codecov.io/github/borgbackup/borg/coverage.svg?branch=master
  128. :alt: Test Coverage
  129. :target: https://codecov.io/github/borgbackup/borg?branch=master
  130. .. |screencast| image:: https://asciinema.org/a/28691.png
  131. :alt: BorgBackup Installation and Basic Usage
  132. :target: https://asciinema.org/a/28691?autoplay=1&speed=2