2
0

borg-upgrade.1 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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-UPGRADE" 1 "2022-06-25" "" "borg backup tool"
  31. .SH NAME
  32. borg-upgrade \- upgrade a repository from a previous version
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] upgrade [options]
  36. .SH DESCRIPTION
  37. .sp
  38. Upgrade an existing, local Borg repository.
  39. .SS When you do not need borg upgrade
  40. .sp
  41. Not every change requires that you run \fBborg upgrade\fP\&.
  42. .sp
  43. You do \fBnot\fP need to run it when:
  44. .INDENT 0.0
  45. .IP \(bu 2
  46. moving your repository to a different place
  47. .IP \(bu 2
  48. upgrading to another point release (like 1.0.x to 1.0.y),
  49. except when noted otherwise in the changelog
  50. .IP \(bu 2
  51. upgrading from 1.0.x to 1.1.x,
  52. except when noted otherwise in the changelog
  53. .UNINDENT
  54. .SS Borg 1.x.y upgrades
  55. .sp
  56. Use \fBborg upgrade \-\-tam REPO\fP to require manifest authentication
  57. introduced with Borg 1.0.9 to address security issues. This means
  58. that modifying the repository after doing this with a version prior
  59. to 1.0.9 will raise a validation error, so perform this upgrade
  60. only after updating all clients using the repository to 1.0.9 or newer.
  61. .sp
  62. This upgrade should be done on each client for safety reasons.
  63. .sp
  64. If a repository is accidentally modified with a pre\-1.0.9 client after
  65. this upgrade, use \fBborg upgrade \-\-tam \-\-force REPO\fP to remedy it.
  66. .sp
  67. If you routinely do this you might not want to enable this upgrade
  68. (which will leave you exposed to the security issue). You can
  69. reverse the upgrade by issuing \fBborg upgrade \-\-disable\-tam REPO\fP\&.
  70. .sp
  71. See
  72. \fI\%https://borgbackup.readthedocs.io/en/stable/changes.html#pre\-1\-0\-9\-manifest\-spoofing\-vulnerability\fP
  73. for details.
  74. .SS Borg 0.xx to Borg 1.x
  75. .sp
  76. This currently supports converting Borg 0.xx to 1.0.
  77. .sp
  78. Currently, only LOCAL repositories can be upgraded (issue #465).
  79. .sp
  80. Please note that \fBborg create\fP (since 1.0.0) uses bigger chunks by
  81. default than old borg did, so the new chunks won\(aqt deduplicate
  82. with the old chunks in the upgraded repository.
  83. See \fB\-\-chunker\-params\fP option of \fBborg create\fP and \fBborg recreate\fP\&.
  84. .SH OPTIONS
  85. .sp
  86. See \fIborg\-common(1)\fP for common options of Borg commands.
  87. .SS optional arguments
  88. .INDENT 0.0
  89. .TP
  90. .B \-n\fP,\fB \-\-dry\-run
  91. do not change repository
  92. .TP
  93. .B \-\-inplace
  94. rewrite repository in place, with no chance of going back to older versions of the repository.
  95. .TP
  96. .B \-\-force
  97. Force upgrade
  98. .TP
  99. .B \-\-tam
  100. Enable manifest authentication (in key and cache) (Borg 1.0.9 and later).
  101. .TP
  102. .B \-\-disable\-tam
  103. Disable manifest authentication (in key and cache).
  104. .UNINDENT
  105. .SH EXAMPLES
  106. .INDENT 0.0
  107. .INDENT 3.5
  108. .sp
  109. .nf
  110. .ft C
  111. # Upgrade the borg repository to the most recent version.
  112. $ borg upgrade \-v /path/to/repo
  113. making a hardlink copy in /path/to/repo.before\-upgrade\-2016\-02\-15\-20:51:55
  114. opening attic repository with borg and converting
  115. no key file found for repository
  116. converting repo index /path/to/repo/index.0
  117. converting 1 segments...
  118. converting borg 0.xx to borg current
  119. no key file found for repository
  120. .ft P
  121. .fi
  122. .UNINDENT
  123. .UNINDENT
  124. .SH SEE ALSO
  125. .sp
  126. \fIborg\-common(1)\fP
  127. .SH AUTHOR
  128. The Borg Collective
  129. .\" Generated by docutils manpage writer.
  130. .