README.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. `Borg Installation docs <http://borgbackup.github.io/borgbackup/installation.html>`_
  11. Main features
  12. ~~~~~~~~~~~~~
  13. **Space efficient storage**
  14. Deduplication based on content-defined chunking is used to reduce the number
  15. of bytes stored: each file is split into a number of variable length chunks
  16. and only chunks that have never been seen before are added to the repository.
  17. To deduplicate, all the chunks in the same repository are considered, no
  18. matter whether they come from different machines, from previous backups,
  19. from the same backup or even from the same single file.
  20. Compared to other deduplication approaches, this method does NOT depend on:
  21. * file/directory names staying the same
  22. So you can move your stuff around without killing the deduplication,
  23. even between machines sharing a repo.
  24. * complete files or time stamps staying the same
  25. If a big file changes a little, only a few new chunks will be stored -
  26. this is great for VMs or raw disks.
  27. * the absolute position of a data chunk inside a file
  28. Stuff may get shifted and will still be found by the deduplication
  29. algorithm.
  30. **Speed**
  31. * performance critical code (chunking, compression, encryption) is
  32. implemented in C/Cython
  33. * local caching of files/chunks index data
  34. * quick detection of unmodified files
  35. **Data encryption**
  36. All data can be protected using 256-bit AES encryption, data integrity and
  37. authenticity is verified using HMAC-SHA256.
  38. **Compression**
  39. All data can be compressed by lz4 (super fast, low compression), zlib
  40. (medium speed and compression) or lzma (low speed, high compression).
  41. **Off-site backups**
  42. Borg can store data on any remote host accessible over SSH. If Borg is
  43. installed on the remote host, big performance gains can be achieved
  44. compared to using a network filesystem (sshfs, nfs, ...).
  45. **Backups mountable as filesystems**
  46. Backup archives are mountable as userspace filesystems for easy interactive
  47. backup examination and restores (e.g. by using a regular file manager).
  48. **Platforms Borg works on**
  49. * Linux
  50. * Mac OS X
  51. * FreeBSD
  52. * OpenBSD and NetBSD (for both: no xattrs/ACLs support yet)
  53. * Cygwin (unsupported)
  54. **Free and Open Source Software**
  55. * security and functionality can be audited independently
  56. * licensed under the BSD (3-clause) license
  57. Easy to use
  58. ~~~~~~~~~~~
  59. Initialize a new backup repository and create a backup archive::
  60. $ borg init /mnt/backup
  61. $ borg create /mnt/backup::Monday ~/Documents
  62. Now doing another backup, just to show off the great deduplication::
  63. $ borg create --stats /mnt/backup::Tuesday ~/Documents
  64. Archive name: Tuesday
  65. Archive fingerprint: 387a5e3f9b0e792e91c...
  66. Start time: Tue Mar 25 12:00:10 2014
  67. End time: Tue Mar 25 12:00:10 2014
  68. Duration: 0.08 seconds
  69. Number of files: 358
  70. Original size Compressed size Deduplicated size
  71. This archive: 57.16 MB 46.78 MB 151.67 kB <--- !
  72. All archives: 114.02 MB 93.46 MB 44.81 MB
  73. For a graphical frontend refer to our complementary project
  74. `BorgWeb <https://github.com/borgbackup/borgweb>`_.
  75. Notes
  76. -----
  77. Borg is a fork of `Attic <https://github.com/jborg/attic>`_ and maintained by
  78. "`The Borg Collective <https://github.com/borgbackup/borg/blob/master/AUTHORS>`_".
  79. Read `issue #1 <https://github.com/borgbackup/borg/issues/1>`_ about the initial
  80. considerations regarding project goals and policy of the Borg project.
  81. BORG IS NOT COMPATIBLE WITH ORIGINAL ATTIC.
  82. EXPECT THAT WE WILL BREAK COMPATIBILITY REPEATEDLY WHEN MAJOR RELEASE NUMBER
  83. CHANGES (like when going from 0.x.y to 1.0.0). Please read CHANGES document.
  84. NOT RELEASED DEVELOPMENT VERSIONS HAVE UNKNOWN COMPATIBILITY PROPERTIES.
  85. THIS IS SOFTWARE IN DEVELOPMENT, DECIDE YOURSELF WHETHER IT FITS YOUR NEEDS.
  86. For more information, please also see the
  87. `LICENSE <https://github.com/borgbackup/borg/blob/master/LICENSE>`_.
  88. |build| |coverage|
  89. .. |build| image:: https://travis-ci.org/borgbackup/borg.svg
  90. :alt: Build Status
  91. :target: https://travis-ci.org/borgbackup/borg
  92. .. |coverage| image:: http://codecov.io/github/borgbackup/borg/coverage.svg?branch=master
  93. :alt: Test Coverage
  94. :target: http://codecov.io/github/borgbackup/borg?branch=master