borg-undelete.1 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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-UNDELETE" "1" "2025-12-23" "" "borg backup tool"
  31. .SH NAME
  32. borg-undelete \- Undeletes archives.
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] undelete [options] [NAME]
  36. .SH DESCRIPTION
  37. .sp
  38. This command undeletes archives in the repository.
  39. .sp
  40. Important: Undeleting archives is only possible before compacting.
  41. Once \fBborg compact\fP has run, all disk space occupied only by the
  42. soft\-deleted archives will be freed, and undeleting is no longer
  43. possible.
  44. .sp
  45. When in doubt, use \fB\-\-dry\-run \-\-list\fP to see what would be
  46. undeleted.
  47. .sp
  48. You can undelete multiple archives by specifying a match pattern using
  49. the \fB\-\-match\-archives PATTERN\fP option (for more information on these
  50. patterns, see \fIborg_patterns\fP).
  51. .SH OPTIONS
  52. .sp
  53. See \fIborg\-common(1)\fP for common options of Borg commands.
  54. .SS arguments
  55. .INDENT 0.0
  56. .TP
  57. .B NAME
  58. specify the archive name
  59. .UNINDENT
  60. .SS options
  61. .INDENT 0.0
  62. .TP
  63. .B \-n\fP,\fB \-\-dry\-run
  64. do not change the repository
  65. .TP
  66. .B \-\-list
  67. output a verbose list of archives
  68. .UNINDENT
  69. .SS Archive filters
  70. .INDENT 0.0
  71. .TP
  72. .BI \-a \ PATTERN\fR,\fB \ \-\-match\-archives \ PATTERN
  73. only consider archives matching all patterns. See \(dqborg help match\-archives\(dq.
  74. .TP
  75. .BI \-\-sort\-by \ KEYS
  76. Comma\-separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp
  77. .TP
  78. .BI \-\-first \ N
  79. consider the first N archives after other filters are applied
  80. .TP
  81. .BI \-\-last \ N
  82. consider the last N archives after other filters are applied
  83. .TP
  84. .BI \-\-oldest \ TIMESPAN
  85. consider archives between the oldest archive\(aqs timestamp and (oldest + TIMESPAN), e.g., 7d or 12m.
  86. .TP
  87. .BI \-\-newest \ TIMESPAN
  88. consider archives between the newest archive\(aqs timestamp and (newest \- TIMESPAN), e.g., 7d or 12m.
  89. .TP
  90. .BI \-\-older \ TIMESPAN
  91. consider archives older than (now \- TIMESPAN), e.g., 7d or 12m.
  92. .TP
  93. .BI \-\-newer \ TIMESPAN
  94. consider archives newer than (now \- TIMESPAN), e.g., 7d or 12m.
  95. .UNINDENT
  96. .SH SEE ALSO
  97. .sp
  98. \fIborg\-common(1)\fP
  99. .SH AUTHOR
  100. The Borg Collective
  101. .\" Generated by docutils manpage writer.
  102. .