dfget

dfget is the client of Dragonfly. You can use the dfget command in the command line tool.

Name

dfget - the client of Dragonfly, a non-interactive P2P downloader.

Synopsis

dfget -u [URL] [options]...

Options

  1. -h, --help show this help message and exit
  2. --url URL, -u URL will download a file from this url
  3. --output OUTPUT, -O OUTPUT, -o OUTPUT
  4. output path that not only contains the dir part but
  5. also name part
  6. --md5 MD5, -m MD5 expected file md5
  7. --callsystem CALLSYSTEM
  8. system name that executes dfget,its format is
  9. company_department_appName
  10. --notbs not back source when p2p fail
  11. --locallimit LOCALLIMIT, -s LOCALLIMIT
  12. rate limit about a single download task,its format is
  13. 20M/m/K/k
  14. --totallimit TOTALLIMIT
  15. rate limit about the whole host,its format is
  16. 20M/m/K/k
  17. --identifier IDENTIFIER, -i IDENTIFIER
  18. identify download task,it is available merely when md5
  19. param not exist
  20. --timeout TIMEOUT, --exceed TIMEOUT, -e TIMEOUT
  21. download timeout(second)
  22. --filter FILTER, -f FILTER
  23. filter some query params of url ,e.g. -f 'key&sign'
  24. will filter key and sign query param.in this
  25. way,different urls correspond one same download task
  26. that can use p2p mode
  27. --showbar, -b show progress bar
  28. --pattern {p2p,cdn}, -p {p2p,cdn}
  29. download pattern,cdn pattern not support totallimit
  30. --version, -v version
  31. --node NODE, -n NODE specify nodes
  32. --console show log on console
  33. --header HEADER http header, e.g. --header="Accept: *" --header="Host:
  34. abc"
  35. --dfdaemon caller is from df-daemon

Files

/etc/dragonfly.conf

This is the default configuration file for dfget, which specifies the address of the SuperNode.

  1. [node]
  2. address=127.0.0.1,127.0.0.2

${HOME}/.small-dragonfly

This directory is created by dfget when you start it for the first time.

  1. .small-dragonfly/
  2. ├── data/ # stores temporary data downloaded by dfget
  3. ├── dfdaemon/
  4. └── data/ # default, stores temporary data generated by dfdaemon
  5. ├── logs/
  6. ├── dfclient.log # dfget's log file
  7. ├── dfserver.log # log file of peer server launched by dfget
  8. └── dfdaemon.log # dfdaemon's log file
  9. └── meta/
  10. └── host.meta # stores meta information: peer server port