README.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 <installation>`_ or, if you have already
  11. downloaded Borg, ``docs/installation.rst`` to get started with Borg.
  12. Main features
  13. ~~~~~~~~~~~~~
  14. **Space efficient storage**
  15. Deduplication based on content-defined chunking is used to reduce the number
  16. of bytes stored: each file is split into a number of variable length chunks
  17. and only chunks that have never been seen before are added to the repository.
  18. To deduplicate, all the chunks in the same repository are considered, no
  19. matter whether they come from different machines, from previous backups,
  20. from the same backup or even from the same single file.
  21. Compared to other deduplication approaches, this method does NOT depend on:
  22. * file/directory names staying the same
  23. So you can move your stuff around without killing the deduplication,
  24. even between machines sharing a repo.
  25. * complete files or time stamps staying the same
  26. If a big file changes a little, only a few new chunks will be stored -
  27. this is great for VMs or raw disks.
  28. * the absolute position of a data chunk inside a file
  29. Stuff may get shifted and will still be found by the deduplication
  30. 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.
  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**
  50. For Linux, Mac OS X and FreeBSD, we offer a single-file pyinstaller binary
  51. that does not require installing anything - you can just run it.
  52. **Platforms Borg works on**
  53. * Linux
  54. * Mac OS X
  55. * FreeBSD
  56. * OpenBSD and NetBSD (for both: no xattrs/ACLs support yet)
  57. * Cygwin (unsupported)
  58. **Free and Open Source Software**
  59. * security and functionality can be audited independently
  60. * licensed under the BSD (3-clause) license
  61. Easy to use
  62. ~~~~~~~~~~~
  63. Initialize a new backup repository and create a backup archive::
  64. $ borg init /mnt/backup
  65. $ borg create /mnt/backup::Monday ~/Documents
  66. Now doing another backup, just to show off the great deduplication::
  67. $ borg create --stats /mnt/backup::Tuesday ~/Documents
  68. Archive name: Tuesday
  69. Archive fingerprint: 387a5e3f9b0e792e91c...
  70. Start time: Tue Mar 25 12:00:10 2014
  71. End time: Tue Mar 25 12:00:10 2014
  72. Duration: 0.08 seconds
  73. Number of files: 358
  74. Original size Compressed size Deduplicated size
  75. This archive: 57.16 MB 46.78 MB 151.67 kB <--- !
  76. All archives: 114.02 MB 93.46 MB 44.81 MB
  77. For a graphical frontend refer to our complementary project
  78. `BorgWeb <https://github.com/borgbackup/borgweb>`_.
  79. Notes
  80. -----
  81. Borg is a fork of `Attic <https://github.com/jborg/attic>`_ and maintained by
  82. "`The Borg Collective <https://github.com/borgbackup/borg/blob/master/AUTHORS>`_".
  83. Read `issue #1 <https://github.com/borgbackup/borg/issues/1>`_ about the initial
  84. considerations regarding project goals and policy of the Borg project.
  85. BORG IS NOT COMPATIBLE WITH ORIGINAL ATTIC.
  86. EXPECT THAT WE WILL BREAK COMPATIBILITY REPEATEDLY WHEN MAJOR RELEASE NUMBER
  87. CHANGES (like when going from 0.x.y to 1.0.0). Please read the
  88. `changelog`_ (or ``CHANGES.rst`` in the source distribution) for more information.
  89. NOT RELEASED DEVELOPMENT VERSIONS HAVE UNKNOWN COMPATIBILITY PROPERTIES.
  90. THIS IS SOFTWARE IN DEVELOPMENT, DECIDE YOURSELF WHETHER IT FITS YOUR NEEDS.
  91. For more information, please also see the
  92. `LICENSE <https://github.com/borgbackup/borg/blob/master/LICENSE>`_.
  93. |build| |coverage|
  94. .. |build| image:: https://travis-ci.org/borgbackup/borg.svg
  95. :alt: Build Status
  96. :target: https://travis-ci.org/borgbackup/borg
  97. .. |coverage| image:: http://codecov.io/github/borgbackup/borg/coverage.svg?branch=master
  98. :alt: Test Coverage
  99. :target: http://codecov.io/github/borgbackup/borg?branch=master