borg-key-import.1 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "BORG-KEY-IMPORT" "1" "2025-05-19" "" "borg backup tool"
  31. .SH NAME
  32. borg-key-import \- Import the repository key from backup
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] key import [options] [PATH]
  36. .SH DESCRIPTION
  37. .sp
  38. This command restores a key previously backed up with the export command.
  39. .sp
  40. If the \fB\-\-paper\fP option is given, the import will be an interactive
  41. process in which each line is checked for plausibility before
  42. proceeding to the next line. For this format PATH must not be given.
  43. .sp
  44. For repositories using keyfile encryption, the key file which \fBborg key
  45. import\fP writes to depends on several factors. If the \fBBORG_KEY_FILE\fP
  46. environment variable is set and non\-empty, \fBborg key import\fP creates
  47. or overwrites that file named by \fB$BORG_KEY_FILE\fP\&. Otherwise, \fBborg
  48. key import\fP searches in the \fB$BORG_KEYS_DIR\fP directory for a key file
  49. associated with the repository. If a key file is found in
  50. \fB$BORG_KEYS_DIR\fP, \fBborg key import\fP overwrites it; otherwise, \fBborg
  51. key import\fP creates a new key file in \fB$BORG_KEYS_DIR\fP\&.
  52. .SH OPTIONS
  53. .sp
  54. See \fIborg\-common(1)\fP for common options of Borg commands.
  55. .SS arguments
  56. .INDENT 0.0
  57. .TP
  58. .B PATH
  59. path to the backup (\(aq\-\(aq to read from stdin)
  60. .UNINDENT
  61. .SS options
  62. .INDENT 0.0
  63. .TP
  64. .B \-\-paper
  65. interactively import from a backup done with \fB\-\-paper\fP
  66. .UNINDENT
  67. .SH SEE ALSO
  68. .sp
  69. \fIborg\-common(1)\fP, \fIborg\-key\-export(1)\fP
  70. .SH AUTHOR
  71. The Borg Collective
  72. .\" Generated by docutils manpage writer.
  73. .