create.rst.inc 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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]
  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. --timestamp yyyy-mm-ddThh:mm:ss
  58. manually specify the archive creation date/time (UTC).
  59. alternatively, give a reference file/directory.
  60. --chunker-params CHUNK_MIN_EXP,CHUNK_MAX_EXP,HASH_MASK_BITS,HASH_WINDOW_SIZE
  61. specify the chunker parameters. default: 19,23,21,4095
  62. --ignore-inode ignore inode data in the file metadata cache used to
  63. detect unchanged files.
  64. -C COMPRESSION, --compression COMPRESSION
  65. select compression algorithm (and level): none == no
  66. compression (default), lz4 == lz4, zlib == zlib
  67. (default level 6), zlib,0 .. zlib,9 == zlib (with
  68. level 0..9), lzma == lzma (default level 6), lzma,0 ..
  69. lzma,9 == lzma (with level 0..9).
  70. --read-special open and read block and char device files as well as
  71. FIFOs as if they were regular files. Also follows
  72. symlinks pointing to these kinds of files.
  73. -n, --dry-run do not create a backup archive
  74. Description
  75. ~~~~~~~~~~~
  76. This command creates a backup archive containing all files found while recursively
  77. traversing all paths specified. The archive will consume almost no disk space for
  78. files or parts of files that have already been stored in other archives.
  79. The archive name needs to be unique. It must not end in '.checkpoint' or
  80. '.checkpoint.N' (with N being a number), because these names are used for
  81. checkpoints and treated in special ways.
  82. In the archive name, you may use the following format tags:
  83. {now}, {utcnow}, {fqdn}, {hostname}, {user}, {pid}, {borgversion}
  84. To speed up pulling backups over sshfs and similar network file systems which do
  85. not provide correct inode information the --ignore-inode flag can be used. This
  86. potentially decreases reliability of change detection, while avoiding always reading
  87. all files on these file systems.
  88. See the output of the "borg help patterns" command for more help on exclude patterns.
  89. See the output of the "borg help placeholders" command for more help on placeholders.