| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 | .\" Man page generated from reStructuredText...TH BORG-UPGRADE 1 "2017-02-11" "" "borg backup tool".SH NAMEborg-upgrade \- upgrade a repository from a previous version..nr rst2man-indent-level 0..de1 rstReportMargin\\$1 \\n[an-margin]level \\n[rst2man-indent-level]level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]-\\n[rst2man-indent0]\\n[rst2man-indent1]\\n[rst2man-indent2]...de1 INDENT.\" .rstReportMargin pre:. RS \\$1. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]. nr rst2man-indent-level +1.\" .rstReportMargin post:...de UNINDENT. RE.\" indent \\n[an-margin].\" old: \\n[rst2man-indent\\n[rst2man-indent-level]].nr rst2man-indent-level -1.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]].in \\n[rst2man-indent\\n[rst2man-indent-level]]u...SH SYNOPSIS.spborg upgrade <options> REPOSITORY.SH DESCRIPTION.spUpgrade an existing Borg repository..SS Borg 1.x.y upgrades.spUse \fBborg upgrade \-\-tam REPO\fP to require manifest authenticationintroduced with Borg 1.0.9 to address security issues. This meansthat modifying the repository after doing this with a version priorto 1.0.9 will raise a validation error, so only perform this upgradeafter updating all clients using the repository to 1.0.9 or newer..spThis upgrade should be done on each client for safety reasons..spIf a repository is accidentally modified with a pre\-1.0.9 client afterthis upgrade, use \fBborg upgrade \-\-tam \-\-force REPO\fP to remedy it..spIf you routinely do this you might not want to enable this upgrade(which will leave you exposed to the security issue). You canreverse the upgrade by issuing \fBborg upgrade \-\-disable\-tam REPO\fP\&..spSee\fI\%https://borgbackup.readthedocs.io/en/stable/changes.html#pre\-1\-0\-9\-manifest\-spoofing\-vulnerability\fPfor details..SS Attic and Borg 0.xx to Borg 1.x.spThis currently supports converting an Attic repository to Borg and alsohelps with converting Borg 0.xx to 1.0..spCurrently, only LOCAL repositories can be upgraded (issue #465)..spIt will change the magic strings in the repository\(aqs segmentsto match the new Borg magic strings. The keyfiles found in$ATTIC_KEYS_DIR or ~/.attic/keys/ will also be converted andcopied to $BORG_KEYS_DIR or ~/.config/borg/keys..spThe cache files are converted, from $ATTIC_CACHE_DIR or~/.cache/attic to $BORG_CACHE_DIR or ~/.cache/borg, but thecache layout between Borg and Attic changed, so it is possiblethe first backup after the conversion takes longer than expecteddue to the cache resync..spUpgrade should be able to resume if interrupted, although itwill still iterate over all segments. If you want to startfrom scratch, use \fIborg delete\fP over the copied repository tomake sure the cache files are also removed:.INDENT 0.0.INDENT 3.5borg delete borg.UNINDENT.UNINDENT.spUnless \fB\-\-inplace\fP is specified, the upgrade process firstcreates a backup copy of the repository, inREPOSITORY.upgrade\-DATETIME, using hardlinks. This takeslonger than in place upgrades, but is much safer and givesprogress information (as opposed to \fBcp \-al\fP). Once you aresatisfied with the conversion, you can safely destroy thebackup copy..spWARNING: Running the upgrade in place will make the currentcopy unusable with older version, with no way of going backto previous versions. This can PERMANENTLY DAMAGE YOURREPOSITORY!  Attic CAN NOT READ BORG REPOSITORIES, as themagic strings have changed. You have been warned..SH OPTIONS.spSee \fIborg\-common(1)\fP for common options of Borg commands..SS arguments.INDENT 0.0.TP.B REPOSITORYpath to the repository to be upgraded.UNINDENT.SS optional arguments.INDENT 0.0.TP.B \-p\fP,\fB  \-\-progressshow progress display while upgrading the repository.TP.B \-n\fP,\fB  \-\-dry\-rundo not change repository.TP.B \-i\fP,\fB  \-\-inplacerewrite repository in place, with no chance of going back to olderversions of the repository..TP.B \-\-forceForce upgrade.TP.B \-\-tamEnable manifest authentication (in key and cache) (Borg 1.0.9 and later).TP.B \-\-disable\-tamDisable manifest authentication (in key and cache).UNINDENT.SH EXAMPLES.INDENT 0.0.INDENT 3.5.sp.nf.ft C# Upgrade the borg repository to the most recent version.$ borg upgrade \-v /path/to/repomaking a hardlink copy in /path/to/repo.upgrade\-2016\-02\-15\-20:51:55opening attic repository with borg and convertingno key file found for repositoryconverting repo index /path/to/repo/index.0converting 1 segments...converting borg 0.xx to borg currentno key file found for repository.ft P.fi.UNINDENT.UNINDENT.SS Upgrading a passphrase encrypted attic repo.spattic offered a "passphrase" encryption mode, but this was removed in borg 1.0and replaced by the "repokey" mode (which stores the passphrase\-protectedencryption key into the repository config)..spThus, to upgrade a "passphrase" attic repo to a "repokey" borg repo, 2 stepsare needed, in this order:.INDENT 0.0.IP \(bu 2borg upgrade repo.IP \(bu 2borg key migrate\-to\-repokey repo.UNINDENT.SH SEE ALSO.sp\fIborg\-common(1)\fP.SH AUTHORThe Borg Collective.\" Generated by docutils manpage writer..
 |