borg-undelete(1)
β¨ borg-undelete β¨
okay bestie, gather round, because this is the manual page for borg-undelete from the borg backup tool and it is literally the "oops undo" button you've been manifesting π
πΈ NAME πΈ
borg-undelete β undeletes archives. that's it. that's the whole vibe. un-delete. bring it back. resurrection era π¦
π SYNOPSIS π
borg [common options] undelete [options] [NAME]
π DESCRIPTION π
so like, this command undeletes archives in the repository. archives that got soft-deleted? yeah, they come back. iconic behaviour honestly π
important important IMPORTANT: undeleteing archives is only possible before compacting. once borg compact has run, all the disk space occupied only by the soft-deleted archives is freed, and undeleting is no longer possible. gone gone. like actually gone π so do the undelete before the compact, bestie, do not play yourself.
when in doubt (and honestly, same), use --dry-run --list to see what would be undeleted before you commit to anything. peek first, act second, that's the rule π«Ά
also!! you can undelete multiple archives at once by specifying a match pattern using the --match-archives PATTERN option. want the deets on those patterns? run borg help match-archives. it's giving bulk-restore main character energy β¨
βοΈ OPTIONS βοΈ
common options for Borg commands live over in borg-common(1), go check that out if you need them.
π arguments
NAMEβ specify the archive name. that's the one you're bringing back from the void π«
π options
-n,--dry-runβ do not change the repository. just a little sneak peek, no actual edits, no commitment, we love a low-stakes trial run π--listβ output a verbose list of archives. receipts, basically π
π Archive filters
-a PATTERN,--match-archives PATTERNβ only consider archives matching all patterns. seeborg help match-archives.--sort-by KEYSβ comma-separated list of sorting keys; valid keys are:timestamp,archive,name,id,tags,host,user; default is:timestamp.--first Nβ consider the firstNarchives after other filters are applied.--last Nβ consider the lastNarchives after other filters are applied.--oldest TIMESPANβ consider archives between the oldest archive's timestamp and (oldest +TIMESPAN), e.g.,7dor12m.--newest TIMESPANβ consider archives between the newest archive's timestamp and (newest -TIMESPAN), e.g.,7dor12m.--older TIMESPANβ consider archives older than (now -TIMESPAN), e.g.,7dor12m.--newer TIMESPANβ consider archives newer than (now -TIMESPAN), e.g.,7dor12m.
π SEE ALSO π
π Author π
The Borg Collective β yes, really, that's the credited author, no cap π§
and that's the whole page, bestie!! this was the borg backup tool manual for borg-undelete, version-flavoured borg-undelete(1), dated 2026-10-07. now go forth, undelete responsibly, and remember: compact later, undelete first ππβ¨
π¦ where this page comes from
- ubuntu stonking: borgbackup2 2.0.0b25-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms