kind.8 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. .ds d \-\^\-
  2. .ds o \fR[\fP
  3. .ds c \fR]\fP
  4. .ds | \fR|\fP
  5. .de D
  6. \\.B \*d\\$1
  7. ..
  8. .de DI
  9. \\.BI \*d\\$1 \\$2
  10. ..
  11. .de DR
  12. \\.BR \*d\\$1 \\$2
  13. ..
  14. .de Di
  15. \\.BI \*d\\$1 " \\$2"
  16. ..
  17. .de Db
  18. \\.B \*d\\$1 " \\$2"
  19. ..
  20. .de Df
  21. \\.B \*d\*ono\*c\\$1
  22. ..
  23. .de See
  24. See \fB\\$1\fP for details.
  25. ..
  26. .de SeeIn
  27. See \fB\\$1\fP in \fB\\$2\fP for details.
  28. ..
  29. .de multiple
  30. Multiple \fB\*d\\$1\fP values will accumulate.
  31. ..
  32. .de default
  33. Default value: \fB\\$1\fP
  34. ..
  35. .TH KIND 8
  36. .SH NAME
  37. kind \- kind is no dirvish
  38. .SH SYNOPSIS
  39. .B kind
  40. [
  41. .I OPTIONS
  42. ]
  43. .I vault_or_group
  44. .SH DESCRIPTION
  45. .P
  46. Create a backup image of a client directory tree. If configured
  47. a group name may be given as parameter to backup all group members.
  48. .P
  49. Each image is a directory containing
  50. .BR rsync-log,
  51. .BR expires,
  52. .B tree
  53. and if errors were detected an
  54. .B error
  55. file.
  56. The
  57. .B rsync-log
  58. retains the the output of rsync listing all files that were changed
  59. or added with some statistical information.
  60. Tree is the copy of the client tree.
  61. .P
  62. The client directory tree is compared with an existing image
  63. to create a new image.
  64. Unchanged files are shared between images.
  65. For changed files only those parts that actually change are
  66. transfered over the network.
  67. Unchanged portions of files are copied from the reference image.
  68. .P
  69. The resulting images contain complete copies of the original trees
  70. preserving ownership and file permissions.
  71. In this way even though the backups are made incrementally,
  72. each image can be used independently for restores
  73. or to make removable-media off-site copies or archives.
  74. .P
  75. The removal of an image will have no effect on other images.
  76. .P
  77. After backup all images of the vault are checked and expired images
  78. are removed
  79. .SH OPTIONS
  80. .P
  81. Each option may be unambiguously abbreviated.
  82. .TP
  83. .Di masterconfig config-file
  84. Load general options from the specified file. Default is /etc/d2/master.conf.
  85. Configuration values from this file may be overwritten by the vault config
  86. files. The master config file must contain at least the specification of
  87. the banks
  88. .TP
  89. .D full
  90. Create a full image without using a reference image. This is neccesary
  91. for the first backup.
  92. .TP
  93. .D dryrun
  94. Don't actually do anything.
  95. Process all configuration files, options and tests
  96. then produce a summary on standard output and exit.
  97. .TP
  98. .D backup
  99. Backup given vault[s]
  100. .TP
  101. .D expire
  102. Expire given vault[s]
  103. .TP
  104. .D listconfig
  105. Show configuration for vault.
  106. .TP
  107. .D listimages
  108. Show data about all images of vault[s].
  109. if neither of --backup, --expire, --listconfig or --listimages is
  110. given, kind does backup and expire.
  111. .TP
  112. .D help
  113. Print help and all available options.
  114. .TP
  115. .D version
  116. Print version string and exit.
  117. .SH EXIT CODES
  118. kind returns 0 in case of no error.
  119. .SH FILES
  120. .TP
  121. .IB /etc/d2/ master.conf
  122. Default master configuration file.
  123. .TP
  124. .IB bank/vault/d2/ vault.conf
  125. Default vault configuration file.
  126. .TP
  127. .IB bank/vault/ last
  128. Symlink to last image
  129. .TP
  130. .IB bank/vault/image/ error
  131. Exists in case of error. May contain an error message.
  132. .TP
  133. .IB bank/vault/image/ rsync-log
  134. Output of rsync command.
  135. .TP
  136. .IB bank/vault/image/ tree
  137. actual image of source directory tree.
  138. .SH SEE ALSO
  139. .nf
  140. ssh(1)
  141. rsync(1)
  142. kind.conf(5)
  143. .SH AUTHOR
  144. kind was created by Wolfgang Ortmann.
  145. .SH BUGS AND ISSUES
  146. In order to preserve permissions it is necessary for kind to run as root
  147. on the backup server.
  148. For an automated backup process the root user must have
  149. non-interactive ssh access to the client systems.
  150. It is not necessary that this access be as the root user on the client.
  151. File ownership is preserved using numeric values
  152. so it is not necessary to have user accounts on the backup server.
  153. Making the vaults network accessible
  154. using protocols that map UIDs based on names instead of number
  155. could allow access controls on files to be violated.
  156. Making the vaults writable by users will compromise the integrity
  157. of the backups.
  158. Therefore any access to the vaults by users
  159. should be done through a read-only mount.