create.rst.inc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. usage: borg create [-h] [--critical] [--error] [--warning] [--info] [--debug]
  7. [--lock-wait N] [--show-rc] [--no-files-cache] [--umask M]
  8. [--remote-path PATH] [-s] [-p] [--list]
  9. [--filter STATUSCHARS] [-e PATTERN]
  10. [--exclude-from EXCLUDEFILE] [--exclude-caches]
  11. [--exclude-if-present FILENAME] [--keep-tag-files]
  12. [-c SECONDS] [-x] [--numeric-owner] [--noatime] [--noctime]
  13. [--timestamp yyyy-mm-ddThh:mm:ss]
  14. [--chunker-params CHUNK_MIN_EXP,CHUNK_MAX_EXP,HASH_MASK_BITS,HASH_WINDOW_SIZE]
  15. [--ignore-inode] [-C COMPRESSION] [--read-special] [-n]
  16. ARCHIVE PATH [PATH ...]
  17. Create new archive
  18. positional arguments:
  19. ARCHIVE name of archive to create (must be also a valid
  20. directory name)
  21. PATH paths to archive
  22. optional arguments:
  23. -h, --help show this help message and exit
  24. --critical work on log level CRITICAL
  25. --error work on log level ERROR
  26. --warning work on log level WARNING (default)
  27. --info, -v, --verbose
  28. work on log level INFO
  29. --debug work on log level DEBUG
  30. --lock-wait N wait for the lock, but max. N seconds (default: 1).
  31. --show-rc show/log the return code (rc)
  32. --no-files-cache do not load/update the file metadata cache used to
  33. detect unchanged files
  34. --umask M set umask to M (local and remote, default: 0077)
  35. --remote-path PATH set remote path to executable (default: "borg")
  36. -s, --stats print statistics for the created archive
  37. -p, --progress show progress display while creating the archive,
  38. showing Original, Compressed and Deduplicated sizes,
  39. followed by the Number of files seen and the path
  40. being processed, default: False
  41. --list output verbose list of items (files, dirs, ...)
  42. --filter STATUSCHARS only display items with the given status characters
  43. -e PATTERN, --exclude PATTERN
  44. exclude paths matching PATTERN
  45. --exclude-from EXCLUDEFILE
  46. read exclude patterns from EXCLUDEFILE, one per line
  47. --exclude-caches exclude directories that contain a CACHEDIR.TAG file
  48. (http://www.brynosaurus.com/cachedir/spec.html)
  49. --exclude-if-present FILENAME
  50. exclude directories that contain the specified file
  51. --keep-tag-files keep tag files of excluded caches/directories
  52. -c SECONDS, --checkpoint-interval SECONDS
  53. write checkpoint every SECONDS seconds (Default: 300)
  54. -x, --one-file-system
  55. stay in same file system, do not cross mount points
  56. --numeric-owner only store numeric user and group identifiers
  57. --noatime do not store atime into archive
  58. --noctime do not store ctime into archive
  59. --timestamp yyyy-mm-ddThh:mm:ss
  60. manually specify the archive creation date/time (UTC).
  61. alternatively, give a reference file/directory.
  62. --chunker-params CHUNK_MIN_EXP,CHUNK_MAX_EXP,HASH_MASK_BITS,HASH_WINDOW_SIZE
  63. specify the chunker parameters. default: 19,23,21,4095
  64. --ignore-inode ignore inode data in the file metadata cache used to
  65. detect unchanged files.
  66. -C COMPRESSION, --compression COMPRESSION
  67. select compression algorithm (and level): none == no
  68. compression (default), lz4 == lz4, zlib == zlib
  69. (default level 6), zlib,0 .. zlib,9 == zlib (with
  70. level 0..9), lzma == lzma (default level 6), lzma,0 ..
  71. lzma,9 == lzma (with level 0..9).
  72. --read-special open and read block and char device files as well as
  73. FIFOs as if they were regular files. Also follows
  74. symlinks pointing to these kinds of files.
  75. -n, --dry-run do not create a backup archive
  76. Description
  77. ~~~~~~~~~~~
  78. This command creates a backup archive containing all files found while recursively
  79. traversing all paths specified. When giving '-' as path, borg will read data
  80. from standard input and create a file 'stdin' in the created archive from that
  81. data.
  82. The archive will consume almost no disk space for files or parts of files that
  83. have already been stored in other archives.
  84. The archive name needs to be unique. It must not end in '.checkpoint' or
  85. '.checkpoint.N' (with N being a number), because these names are used for
  86. checkpoints and treated in special ways.
  87. In the archive name, you may use the following placeholders:
  88. {now}, {utcnow}, {fqdn}, {hostname}, {user} and some others.
  89. To speed up pulling backups over sshfs and similar network file systems which do
  90. not provide correct inode information the --ignore-inode flag can be used. This
  91. potentially decreases reliability of change detection, while avoiding always reading
  92. all files on these file systems.
  93. See the output of the "borg help patterns" command for more help on exclude patterns.
  94. See the output of the "borg help placeholders" command for more help on placeholders.