create.rst.inc 3.4 KB

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