tarsnap-keygen.1-mdoc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .\" Copyright 2007, 2009 Colin Percival
  2. .\" All rights reserved.
  3. .\"
  4. .Dd @DATE@
  5. .Dt TARSNAP-KEYGEN 1
  6. .Os
  7. .Sh NAME
  8. .Nm tarsnap-keygen
  9. .Nd generate a key file for use with
  10. .Xr tarsnap 1
  11. .Sh SYNOPSIS
  12. .Nm
  13. .Fl -keyfile Ar key-file
  14. .Fl -user Ar user-name
  15. .Fl -machine Ar machine-name
  16. .Op Fl -passphrased
  17. .Op Fl -passphrase-mem Ar maxmem
  18. .Op Fl -passphrase-time Ar maxtime
  19. .Nm
  20. .Fl -version
  21. .Sh DESCRIPTION
  22. .Nm
  23. generates cryptographic keys, registers with the
  24. tarsnap server, and writes a key file for use with
  25. .Xr tarsnap 1 .
  26. .Pp
  27. The
  28. .Fl -keyfile Ar key-file
  29. option specifies the name of the file in which to write the newly-generated
  30. keys.
  31. The
  32. .Fl -user Ar user-name
  33. option specifies the name (i.e. email address) of the Tarsnap account.
  34. The
  35. .Fl -machine Ar machine-name
  36. option specifies a name which will be displayed in accounting reports so that
  37. you can see how much data each machine is storing.
  38. .Pp
  39. If the
  40. .Fl -passphrased
  41. option is specified, the user will be prompted to enter a passphrase (twice)
  42. to be used to encrypt the key file.
  43. .Pp
  44. If the
  45. .Fl -passphrase-mem Ar maxmem
  46. option is specified, a maximum of
  47. .Ar maxmem
  48. bytes of RAM will be used in the scrypt key derivation function to
  49. encrypt the key file; it may be necessary to set this option if a key
  50. file is being generated on a system with far more RAM than the system
  51. on which the key file will be used.
  52. .Pp
  53. If the
  54. .Fl -passphrase-time Ar maxtime
  55. option is specified, a maximum of approximately
  56. .Ar maxtime
  57. seconds will be used in the scrypt key derivation function to
  58. encrypt the key file.
  59. .Pp
  60. The
  61. .Fl -version
  62. option prints the version number of
  63. .Nm ,
  64. then exits.