create.rst.inc 4.3 KB

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