mirror of
https://github.com/borgbackup/borg.git
synced 2026-09-01 14:13:19 +02:00
The samples in repo-list.rst, copy.rst and rename.rst predate the tags column of the default repo-list format, so their column spacing was wrong. Regenerated from real runs of each page's own scenario. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
748 B
ReStructuredText
21 lines
748 B
ReStructuredText
.. include:: copy.rst.inc
|
|
|
|
Examples
|
|
~~~~~~~~
|
|
::
|
|
|
|
# create an archive, then keep a copy of it under a stable name:
|
|
$ borg create backup-2016-02-15 ~
|
|
$ borg copy backup-2016-02-15 known-good
|
|
$ borg repo-list
|
|
d7b79fd3 Sat, 2026-08-29 14:39:27 +0200 backup-2016-02-15 tw MacBook-Pro
|
|
f81040e3 Sat, 2026-08-29 14:39:27 +0200 known-good tw MacBook-Pro
|
|
|
|
# the copy is an independent archive:
|
|
# after deleting (and compacting away) the original, the copy is still complete.
|
|
$ borg delete backup-2016-02-15
|
|
$ borg compact
|
|
$ borg extract known-good
|
|
|
|
# if the archive name is not unique, address the archive by its ID:
|
|
$ borg copy aid:d7b79fd3 known-good
|