README.rst 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. What is BorgBackup?
  2. -------------------
  3. BorgBackup (short: Borg) is a deduplicating backup program.
  4. Optionally, it supports compression and authenticated encryption.
  5. The main goal of Borg is to provide an efficient and secure way to backup data.
  6. The data deduplication technique used makes Borg suitable for daily backups
  7. since only changes are stored.
  8. The authenticated encryption technique makes it suitable for backups to not
  9. fully trusted targets.
  10. See the `installation manual`_ or, if you have already
  11. downloaded Borg, ``docs/installation.rst`` to get started with Borg.
  12. .. _installation manual: https://borgbackup.readthedocs.org/installation.html
  13. Main features
  14. ~~~~~~~~~~~~~
  15. **Space efficient storage**
  16. Deduplication based on content-defined chunking is used to reduce the number
  17. of bytes stored: each file is split into a number of variable length chunks
  18. and only chunks that have never been seen before are added to the repository.
  19. To deduplicate, all the chunks in the same repository are considered, no
  20. matter whether they come from different machines, from previous backups,
  21. from the same backup or even from the same single file.
  22. Compared to other deduplication approaches, this method does NOT depend on:
  23. * file/directory names staying the same
  24. So you can move your stuff around without killing the deduplication,
  25. even between machines sharing a repo.
  26. * complete files or time stamps staying the same
  27. If a big file changes a little, only a few new chunks will be stored -
  28. this is great for VMs or raw disks.
  29. * the absolute position of a data chunk inside a file
  30. Stuff may get shifted and will still be found by the deduplication
  31. algorithm.
  32. **Speed**
  33. * performance critical code (chunking, compression, encryption) is
  34. implemented in C/Cython
  35. * local caching of files/chunks index data
  36. * quick detection of unmodified files
  37. **Data encryption**
  38. All data can be protected using 256-bit AES encryption, data integrity and
  39. authenticity is verified using HMAC-SHA256.
  40. **Compression**
  41. All data can be compressed by lz4 (super fast, low compression), zlib
  42. (medium speed and compression) or lzma (low speed, high compression).
  43. **Off-site backups**
  44. Borg can store data on any remote host accessible over SSH. If Borg is
  45. installed on the remote host, big performance gains can be achieved
  46. compared to using a network filesystem (sshfs, nfs, ...).
  47. **Backups mountable as filesystems**
  48. Backup archives are mountable as userspace filesystems for easy interactive
  49. backup examination and restores (e.g. by using a regular file manager).
  50. **Easy installation on multiple platforms**
  51. We offer single-file binaries
  52. that does not require installing anything - you can just run it on
  53. the supported 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 /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
  79. `BorgWeb <https://github.com/borgbackup/borgweb>`_.
  80. Notes
  81. -----
  82. Borg is a fork of `Attic <https://github.com/jborg/attic>`_ and maintained by
  83. "`The Borg collective`_".
  84. .. _The Borg collective: https://borgbackup.readthedocs.org/authors.html
  85. Read `issue #1 <https://github.com/borgbackup/borg/issues/1>`_ about the initial
  86. considerations regarding project goals and policy of the Borg project.
  87. BORG IS NOT COMPATIBLE WITH ORIGINAL ATTIC.
  88. EXPECT THAT WE WILL BREAK COMPATIBILITY REPEATEDLY WHEN MAJOR RELEASE NUMBER
  89. CHANGES (like when going from 0.x.y to 1.0.0). Please read the
  90. `changelog`_ (or ``CHANGES.rst`` in the source distribution) for more
  91. information.
  92. .. _changelog: https://borgbackup.readthedocs.org/changes.html
  93. NOT RELEASED DEVELOPMENT VERSIONS HAVE UNKNOWN COMPATIBILITY PROPERTIES.
  94. THIS IS SOFTWARE IN DEVELOPMENT, DECIDE YOURSELF WHETHER IT FITS YOUR NEEDS.
  95. Borg is distributed under a 3-clause BSD license, see `the license`_
  96. for the complete license.
  97. .. _the license: https://borgbackup.readthedocs.org/authors.html#license
  98. |build| |coverage|
  99. .. |build| image:: https://travis-ci.org/borgbackup/borg.svg
  100. :alt: Build Status
  101. :target: https://travis-ci.org/borgbackup/borg
  102. .. |coverage| image:: http://codecov.io/github/borgbackup/borg/coverage.svg?branch=master
  103. :alt: Test Coverage
  104. :target: http://codecov.io/github/borgbackup/borg?branch=master