tarsplit 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .TH TARSPLIT 1
  2. .SH NAME
  3. tarsplit, tarcat \- split a tar archive into archives under some size, or combine archives
  4. .SH SYNOPSIS
  5. .B tarsplit
  6. [
  7. .B -p
  8. .I prefix
  9. ] [
  10. .B -s
  11. .I size
  12. ] [
  13. .I file
  14. \&...
  15. ]
  16. .PP
  17. .B tarcat
  18. [
  19. .I file
  20. \&...
  21. ]
  22. .SH DESCRIPTION
  23. .I Tarsplit
  24. copies a
  25. .IR tar (1)
  26. archive from input
  27. .IR file (s)
  28. into a series of independent
  29. .I tar
  30. archives with names starting with
  31. .I prefix
  32. .RL ( ts.\&
  33. by default)
  34. and no larger than a fixed
  35. .I size
  36. (512MB by default).
  37. This can be useful when copying large archives onto
  38. fixed-size storage media such as CDs or DVDs.
  39. .PP
  40. .I Tarsplit
  41. prints a list on standard output
  42. of the resulting archive names, and the first and last member names in each,
  43. to assist finding particular members without recombining the archives.
  44. .PP
  45. .I Tarcat
  46. copies
  47. .IR tar (1)
  48. archives from input
  49. .IR file s
  50. and combines them into a single
  51. .I tar
  52. archive.
  53. It is the inverse of
  54. .IR tarsplit .
  55. .SH EXAMPLES
  56. Archive
  57. .B /adm
  58. and split the result.
  59. .IP
  60. .EX
  61. ; tar c /adm | tarsplit -s 409600
  62. ts.00000: /adm/ ... /adm/brickdb/have/timeout/viaduct60
  63. ts.00001: /adm/brickdb/have/tls-log ... /adm/timezone/Australia_ACT
  64. ts.00002: /adm/timezone/Australia_Broken-Hill ... /adm/words
  65. ; file ts.*
  66. ts.00000: posix tar archive
  67. ts.00001: posix tar archive
  68. ts.00002: posix tar archive
  69. .EE
  70. .PP
  71. Reassemble the original archive and check the tail end for completeness:
  72. .IP
  73. .EX
  74. ; tarcat ts.* | tar t | tail -2
  75. \&./adm/whois
  76. \&./adm/words
  77. .EE
  78. .SH FILES
  79. .I prefixNNNNN
  80. output archives
  81. .SH SOURCE
  82. .B /sys/src/cmd/tarsplit
  83. .SH SEE ALSO
  84. .IR bsplit (1),
  85. .IR split (1)