create.rst.inc 3.8 KB

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