create.rst.inc 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_create:
  3. borg create
  4. -----------
  5. ::
  6. borg create <options> ARCHIVE PATH
  7. positional arguments
  8. ARCHIVE
  9. name of archive to create (must be also a valid directory name)
  10. PATH
  11. paths to archive
  12. optional arguments
  13. ``-n``, ``--dry-run``
  14. | do not create a backup archive
  15. ``-s``, ``--stats``
  16. | print statistics for the created archive
  17. ``-p``, ``--progress``
  18. | show progress display while creating the archive, showing Original, Compressed and Deduplicated sizes, followed by the Number of files seen and the path being processed, default: False
  19. ``--list``
  20. | output verbose list of items (files, dirs, ...)
  21. ``--filter STATUSCHARS``
  22. | only display items with the given status characters
  23. `Common options`_
  24. |
  25. Exclusion options
  26. ``-e PATTERN``, ``--exclude PATTERN``
  27. | exclude paths matching PATTERN
  28. ``--exclude-from EXCLUDEFILE``
  29. | read exclude patterns from EXCLUDEFILE, one per line
  30. ``--exclude-caches``
  31. | exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html)
  32. ``--exclude-if-present FILENAME``
  33. | exclude directories that contain the specified file
  34. ``--keep-tag-files``
  35. | keep tag files of excluded caches/directories
  36. Filesystem options
  37. ``-x``, ``--one-file-system``
  38. | stay in same file system, do not cross mount points
  39. ``--numeric-owner``
  40. | only store numeric user and group identifiers
  41. ``--ignore-inode``
  42. | ignore inode data in the file metadata cache used to detect unchanged files.
  43. ``--read-special``
  44. | open and read block and char device files as well as FIFOs as if they were regular files. Also follows symlinks pointing to these kinds of files.
  45. Archive options
  46. ``--comment COMMENT``
  47. | add a comment text to the archive
  48. ``--timestamp yyyy-mm-ddThh:mm:ss``
  49. | manually specify the archive creation date/time (UTC). alternatively, give a reference file/directory.
  50. ``-c SECONDS``, ``--checkpoint-interval SECONDS``
  51. | write checkpoint every SECONDS seconds (Default: 1800)
  52. ``--chunker-params CHUNK_MIN_EXP,CHUNK_MAX_EXP,HASH_MASK_BITS,HASH_WINDOW_SIZE``
  53. | specify the chunker parameters. default: 19,23,21,4095
  54. ``-C COMPRESSION``, ``--compression COMPRESSION``
  55. | select compression algorithm, see the output of the "borg help compression" command for details.
  56. ``--compression-from COMPRESSIONCONFIG``
  57. | read compression patterns from COMPRESSIONCONFIG, see the output of the "borg help compression" command for details.
  58. Description
  59. ~~~~~~~~~~~
  60. This command creates a backup archive containing all files found while recursively
  61. traversing all paths specified. The archive will consume almost no disk space for
  62. files or parts of files that have already been stored in other archives.
  63. The archive name needs to be unique. It must not end in '.checkpoint' or
  64. '.checkpoint.N' (with N being a number), because these names are used for
  65. checkpoints and treated in special ways.
  66. In the archive name, you may use the following format tags:
  67. {now}, {utcnow}, {fqdn}, {hostname}, {user}, {pid}, {uuid4}, {borgversion}
  68. To speed up pulling backups over sshfs and similar network file systems which do
  69. not provide correct inode information the --ignore-inode flag can be used. This
  70. potentially decreases reliability of change detection, while avoiding always reading
  71. all files on these file systems.
  72. See the output of the "borg help patterns" command for more help on exclude patterns.
  73. See the output of the "borg help placeholders" command for more help on placeholders.