mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 08:45:13 +00:00
docs: borg upgrade also handles borg 0.xx -> 1.0
This commit is contained in:
parent
2f95c8ea79
commit
316f5a345f
2 changed files with 11 additions and 13 deletions
|
@ -548,15 +548,13 @@ def do_prune(self, args):
|
||||||
|
|
||||||
def do_upgrade(self, args):
|
def do_upgrade(self, args):
|
||||||
"""upgrade a repository from a previous version"""
|
"""upgrade a repository from a previous version"""
|
||||||
# XXX: currently only upgrades from Attic repositories, but may
|
# mainly for upgrades from Attic repositories,
|
||||||
# eventually be extended to deal with major upgrades for borg
|
# but also supports borg 0.xx -> 1.0 upgrade.
|
||||||
# itself.
|
|
||||||
#
|
#
|
||||||
# in this case, it should auto-detect the current repository
|
# TODO:
|
||||||
# format and fire up necessary upgrade mechanism. this remains
|
# it should auto-detect the current repository format and fire up
|
||||||
# to be implemented.
|
# necessary upgrade mechanism.
|
||||||
|
|
||||||
# XXX: should auto-detect if it is an attic repository here
|
|
||||||
repo = AtticRepositoryUpgrader(args.location.path, create=False)
|
repo = AtticRepositoryUpgrader(args.location.path, create=False)
|
||||||
try:
|
try:
|
||||||
repo.upgrade(args.dry_run, inplace=args.inplace, progress=args.progress)
|
repo.upgrade(args.dry_run, inplace=args.inplace, progress=args.progress)
|
||||||
|
@ -1212,9 +1210,9 @@ def build_parser(self, args=None, prog=None):
|
||||||
help='repository to prune')
|
help='repository to prune')
|
||||||
|
|
||||||
upgrade_epilog = textwrap.dedent("""
|
upgrade_epilog = textwrap.dedent("""
|
||||||
Upgrade an existing Borg repository. This currently
|
Upgrade an existing Borg repository.
|
||||||
only supports converting an Attic repository, but may
|
This currently supports converting an Attic repository to Borg and also
|
||||||
eventually be extended to cover major Borg upgrades as well.
|
helps with converting Borg 0.xx to 1.0.
|
||||||
|
|
||||||
It will change the magic strings in the repository's segments
|
It will change the magic strings in the repository's segments
|
||||||
to match the new Borg magic strings. The keyfiles found in
|
to match the new Borg magic strings. The keyfiles found in
|
||||||
|
|
|
@ -34,9 +34,9 @@ borg upgrade
|
||||||
Description
|
Description
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
||||||
Upgrade an existing Borg repository. This currently
|
Upgrade an existing Borg repository.
|
||||||
only supports converting an Attic repository, but may
|
This currently supports converting an Attic repository to Borg and also
|
||||||
eventually be extended to cover major Borg upgrades as well.
|
helps with converting Borg 0.xx to 1.0.
|
||||||
|
|
||||||
It will change the magic strings in the repository's segments
|
It will change the magic strings in the repository's segments
|
||||||
to match the new Borg magic strings. The keyfiles found in
|
to match the new Borg magic strings. The keyfiles found in
|
||||||
|
|
Loading…
Reference in a new issue