create.rst.inc 4.8 KB

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