dsync-flist.1.yo 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. mailto(jgg@debian.org)
  2. manpage(dsync-flist)(1)(17 Jan 1999)(dsync)()
  3. manpagename(dsync)(DSync Mirroring utility -- command-line file list manipulator)
  4. manpagesynopsis()
  5. dsync-flist [options] [command] [file]
  6. manpagedescription()
  7. dsync-flist is the command line tool for generating and manipulating the
  8. dsync file list. It can check a previosly generated list against the local
  9. tree and provide a report on its findings. The dsync file list is an
  10. optimized binary file suitable for transmission over the internet.
  11. em(command) is one of:
  12. itemize(
  13. it() generate em(filelist)
  14. it() help
  15. it() dump em(filelist)
  16. it() md5sums em(filelist)
  17. it() md5cache em(filelist)
  18. it() lookup em(filelist dir file)
  19. it() link-dups em(filelist)
  20. it() verify em(filelist)
  21. )
  22. Unless the -h, or --help option is given one of the above commands
  23. must be present.
  24. startdit()
  25. dit(bf(generate))
  26. bf(generate) creates a file list. It takes as an argument the location to
  27. write the file list to and then procceeds to recursively scan . to produce
  28. the list. If md5 generation is enabled bf(generate) will use the previous
  29. list as a cache for md5 checksums, only building new checksums if the file
  30. size or timestamp has changed.
  31. dit(bf(help))
  32. Displays the help text
  33. dit(bf(dump))
  34. bf(dump) shows the contents of the given file list in a short form. The first
  35. word is a type field and the remaing fields represent stored information.
  36. The possible types are F - File, D - Directory, DM - Directory Marker, DS -
  37. Directory Start, H - Header, S - Device Special, L - Symlink, T - Trailer.
  38. After this the actual fields are displayed. Mod - Modification time in
  39. seconds since the unix epoch, N - Entitiy Name, MD5 - MD5 hash, Sz - Size
  40. in bytes, T - Link Target, U/G - User/Group internal ID, Sig - Header
  41. signature, Maj - Header major number, Min - Header minor number, Epoch -
  42. Internal Epoch offset, Count - Flag counter.
  43. dit(bf(md5sums))
  44. bf(md5sums) takes the contents of the file list and displays the stored md5
  45. of every file and then the file name. This output can then be given to
  46. bf(md5sum -c) (GNU) to verify the checksums. Combined with the caching
  47. action of the file list generator this can make md5 indexes of large archives
  48. practical.
  49. dit(bf(md5cache))
  50. Like bf(md5sums), bf(md5cache) displays the md5sums of the files given
  51. on stdin. It will use cached MD5 information if possible otherwise it will
  52. compute the MD5 and return that. It is necessary to run this command from the
  53. same directory the file list was generated in and to give filenames relative
  54. to that directory. Otherwise the caching mechanism will not work.
  55. dit(bf(lookup))
  56. bf(lookup) searches for a single entity in the list. You must specify the
  57. directory, ending in / and then the entity in that directory. The output is
  58. the same as bf(dump)
  59. dit(bf(link-dups))
  60. bf(link-dups) checks the entire file list for files that have duplicate
  61. contents and hard links them. It does this by examining the MD5 information
  62. from the file list and then converting the duplicated files into a hard link.
  63. The file choosen to be the target of all other links is the first file
  64. listed in the file list. The timestamp of the new link is set to be the
  65. largest timestamp of all the other links and the permissions and ownership
  66. remain as the first link. Output is two lines per combination, the first
  67. indicting the source file and the second the file that will be erased and
  68. hardlinked, a souce file may occure multiple times if there are many
  69. duplicated copies.
  70. dit(bf(verify))
  71. bf(verify) checks the given file list against . and reports and deviations.
  72. enddit()
  73. manpageoptions()
  74. All command line options may be set using the configuration file, the
  75. descriptions indicate the configuration option to set. For boolean
  76. options you can override the config file by using something like bf(-f-),
  77. bf(--no-f), bf(-f=no) or several other variations.
  78. startdit()
  79. dit(bf(-h, --help))
  80. Show the help text
  81. dit(bf(-q, --quiet, --silent))
  82. Quiet; produces output suitable for logging, omitting progress indicators.
  83. More qs will produce more quite up to a maximum of 2. You can also use
  84. bf(-q=#) to set the quiet level, overriding the configuration file.
  85. See bf(quiet)
  86. dit(bf(-i, --include))
  87. dit(bf(-e, --exclude))
  88. Add a pattern to the ordered include list. See bf(FileList::Filter).
  89. dit(bf(-n, --no-act))
  90. Suppress action; No changes will be made to the local file system. This
  91. applies to bf(generate) and bf(verify).
  92. dit(bf(--delete))
  93. Allow files to be deleted; This allows files to be erased, it effects
  94. bf(generate) and bf(verify). See bf(delete).
  95. dit(bf(--pi, --perfer-include))
  96. dit(bf(--pe, --perfer-exclude))
  97. Add a pattern to the ordered prefer include list. See
  98. bf(FileList::Prefer-Filter).
  99. dit(bf(--ci, --clean-include))
  100. dit(bf(--ce, --clean-exclude))
  101. Add a pattern to the ordered clean include list. Things excluded by this
  102. filter will be erased. See bf(FileList::Clean-Filter).
  103. dit(bf(--md5))
  104. Generate md5 hashes into the list. See bf(FileList::MD5-Hashes).
  105. dit(bf(--perm))
  106. Generate file permissions into the list. See bf(FileList::Permissions).
  107. dit(bf(--owner))
  108. Generate file ownership into the list [unsupported]. See
  109. bf(FileList::Ownership).
  110. dit(bf(-c, --config-file))
  111. Configuration File; Specify a configuration file to use. bf(apt-get) will
  112. read the default configuration file and then this configuration file. See
  113. bf(apt.conf(5)) for syntax information.
  114. dit(bf(-o, --option))
  115. Set a Configuration Option; This will set an arbitary configuration option.
  116. The syntax is
  117. verb(-o Foo::Bar=bar)
  118. enddit()
  119. manpageseealso()
  120. dsync.conf(5)
  121. manpagediagnostics()
  122. dsync-flist returns zero on normal operation, decimal 100 on error.
  123. manpagebugs()
  124. See https://bugs.debian.org/dsync. If you wish to report a
  125. bug in bf(apt-get), please see bf(/usr/doc/debian/bug-reporting.txt)
  126. or the bf(bug(1)) command.
  127. manpageauthor()
  128. dsync was written by Jason Gunthorpe <jgg@debian.org>.