README.rst 7.1 KB

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