serve.rst.inc 9.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_serve:
  3. borg serve
  4. ----------
  5. .. code-block:: none
  6. borg [common options] serve [options]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  10. | **options** |
  11. +-------------------------------------------------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  12. | | ``--restrict-to-path PATH`` | restrict repository access to PATH. Can be specified multiple times to allow the client access to several directories. Access to all sub-directories is granted implicitly; PATH doesn't need to point directly to a repository. |
  13. +-------------------------------------------------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | | ``--restrict-to-repository PATH`` | restrict repository access. Only the repository located at PATH (no sub-directories are considered) is accessible. Can be specified multiple times to allow the client access to several repositories. Unlike ``--restrict-to-path`` sub-directories are not accessible; PATH needs to point directly at a repository location. PATH may be an empty directory or the last element of PATH may not exist, in which case the client may initialize a repository there. |
  15. +-------------------------------------------------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | | ``--permissions`` | Set repository permission mode. Overrides BORG_REPO_PERMISSIONS environment variable. |
  17. +-------------------------------------------------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | .. class:: borg-common-opt-ref |
  19. | |
  20. | :ref:`common_options` |
  21. +-------------------------------------------------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. .. raw:: html
  23. <script type='text/javascript'>
  24. $(document).ready(function () {
  25. $('.borg-options-table colgroup').remove();
  26. })
  27. </script>
  28. .. only:: latex
  29. options
  30. --restrict-to-path PATH restrict repository access to PATH. Can be specified multiple times to allow the client access to several directories. Access to all sub-directories is granted implicitly; PATH doesn't need to point directly to a repository.
  31. --restrict-to-repository PATH restrict repository access. Only the repository located at PATH (no sub-directories are considered) is accessible. Can be specified multiple times to allow the client access to several repositories. Unlike ``--restrict-to-path`` sub-directories are not accessible; PATH needs to point directly at a repository location. PATH may be an empty directory or the last element of PATH may not exist, in which case the client may initialize a repository there.
  32. --permissions Set repository permission mode. Overrides BORG_REPO_PERMISSIONS environment variable.
  33. :ref:`common_options`
  34. |
  35. Description
  36. ~~~~~~~~~~~
  37. This command starts a repository server process.
  38. borg serve can currently support:
  39. - Getting automatically started via ssh when the borg client uses a ssh://...
  40. remote repository. In this mode, `borg serve` will live until that ssh connection
  41. gets terminated.
  42. - Getting started by some other means (not by the borg client) as a long-running socket
  43. server to be used for borg clients using a socket://... repository (see the `--socket`
  44. option if you do not want to use the default path for the socket and pid file).
  45. Please note that `borg serve` does not support giving a specific repository via the
  46. `--repo` option or `BORG_REPO` environment variable. It is always the borg client which
  47. specifies the repo to use when talking to `borg serve`.
  48. The --permissions option allows enforcing repository permissions:
  49. - `all`: All permissions are granted (default, permissions system is not used)
  50. - `no-delete`: Allow reading and writing, disallow deleting and overwriting data.
  51. New archives can be created, existing archives can not be deleted. New chunks can
  52. be added, existing chunks can not be deleted or overwritten.
  53. - `write-only`: Allow writing, disallow reading data.
  54. New archives can be created, existing archives can not be read.
  55. New chunks can be added, existing chunks can not be read, deleted or overwritten.
  56. - `read-only`: Allow reading, disallow writing or deleting data.
  57. Existing archives can be read, but no archives can be created or deleted.