rspace.rst.inc 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_rspace:
  3. borg rspace
  4. -----------
  5. .. code-block:: none
  6. borg [common options] rspace [options]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+---------------------+---------------------------------------------------------------------+
  10. | **optional arguments** |
  11. +-------------------------------------------------------+---------------------+---------------------------------------------------------------------+
  12. | | ``--reserve SPACE`` | Amount of space to reserve (e.g. 100M, 1G). Default: 0. |
  13. +-------------------------------------------------------+---------------------+---------------------------------------------------------------------+
  14. | | ``--free`` | Free all reserved space. Don't forget to reserve space later again. |
  15. +-------------------------------------------------------+---------------------+---------------------------------------------------------------------+
  16. | .. class:: borg-common-opt-ref |
  17. | |
  18. | :ref:`common_options` |
  19. +-------------------------------------------------------+---------------------+---------------------------------------------------------------------+
  20. .. raw:: html
  21. <script type='text/javascript'>
  22. $(document).ready(function () {
  23. $('.borg-options-table colgroup').remove();
  24. })
  25. </script>
  26. .. only:: latex
  27. optional arguments
  28. --reserve SPACE Amount of space to reserve (e.g. 100M, 1G). Default: 0.
  29. --free Free all reserved space. Don't forget to reserve space later again.
  30. :ref:`common_options`
  31. |
  32. Description
  33. ~~~~~~~~~~~
  34. This command manages reserved space in a repository.
  35. Borg can not work in disk-full conditions (can not lock a repo and thus can
  36. not run prune/delete or compact operations to free disk space).
  37. To avoid running into dead-end situations like that, you can put some objects
  38. into a repository that take up some disk space. If you ever run into a
  39. disk-full situation, you can free that space and then borg will be able to
  40. run normally, so you can free more disk space by using prune/delete/compact.
  41. After that, don't forget to reserve space again, in case you run into that
  42. situation again at a later time.
  43. Examples::
  44. # Create a new repository:
  45. $ borg rcreate ...
  46. # Reserve approx. 1GB of space for emergencies:
  47. $ borg rspace --reserve 1G
  48. # Check amount of reserved space in the repository:
  49. $ borg rspace
  50. # EMERGENCY! Free all reserved space to get things back to normal:
  51. $ borg rspace --free
  52. $ borg prune ...
  53. $ borg delete ...
  54. $ borg compact -v # only this actually frees space of deleted archives
  55. $ borg rspace --reserve 1G # reserve space again for next time
  56. Reserved space is always rounded up to use full reservation blocks of 64MiB.