| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 | .\" Man page generated from reStructuredText....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...TH "BORG-TRANSFER" 1 "2023-02-26" "" "borg backup tool".SH NAMEborg-transfer \- archives transfer from other repository, optionally upgrade data format.SH SYNOPSIS.spborg [common options] transfer [options].SH DESCRIPTION.spThis command transfers archives from one repository to another repository.Optionally, it can also upgrade the transferred data..spSuggested use for general purpose archive transfer (not repo upgrades):.INDENT 0.0.INDENT 3.5.sp.nf.ft C# create a related DST_REPO (reusing key material from SRC_REPO), so that# chunking and chunk id generation will work in the same way as before.borg \-\-repo=DST_REPO rcreate \-\-other\-repo=SRC_REPO \-\-encryption=DST_ENC# transfer archives from SRC_REPO to DST_REPOborg \-\-repo=DST_REPO transfer \-\-other\-repo=SRC_REPO \-\-dry\-run  # check what it would doborg \-\-repo=DST_REPO transfer \-\-other\-repo=SRC_REPO            # do it!borg \-\-repo=DST_REPO transfer \-\-other\-repo=SRC_REPO \-\-dry\-run  # check! anything left?.ft P.fi.UNINDENT.UNINDENT.spThe default is to transfer all archives, including checkpoint archives..spYou could use the misc. archive filter options to limit which archives it willtransfer, e.g. using the \-a option. This is recommended for bigrepositories with multiple data sets to keep the runtime per invocation lower..spFor repository upgrades (e.g. from a borg 1.2 repo to a related borg 2.0 repo), usage isquite similar to the above:.INDENT 0.0.INDENT 3.5.sp.nf.ft Cborg \-\-repo=DST_REPO transfer \-\-other\-repo=SRC_REPO \-\-upgrader=From12To20.ft P.fi.UNINDENT.UNINDENT.SH OPTIONS.spSee \fIborg\-common(1)\fP for common options of Borg commands..SS options.INDENT 0.0.TP.B  \-n\fP,\fB  \-\-dry\-rundo not change repository, just check.TP.BI \-\-other\-repo \ SRC_REPOSITORYtransfer archives from the other repository.TP.BI \-\-upgrader \ UPGRADERuse the upgrader to convert transferred data (default: no conversion).UNINDENT.SS Archive filters.INDENT 0.0.TP.BI \-a \ PATTERN\fR,\fB \ \-\-match\-archives \ PATTERNonly consider archive names matching the pattern. see \(dqborg help match\-archives\(dq..TP.BI \-\-sort\-by \ KEYSComma\-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp.TP.BI \-\-first \ Nconsider first N archives after other filters were applied.TP.BI \-\-last \ Nconsider last N archives after other filters were applied.TP.BI \-\-oldest \ TIMESPANconsider archives between the oldest archive\(aqs timestamp and (oldest + TIMESPAN), e.g. 7d or 12m..TP.BI \-\-newest \ TIMESPANconsider archives between the newest archive\(aqs timestamp and (newest \- TIMESPAN), e.g. 7d or 12m..TP.BI \-\-older \ TIMESPANconsider archives older than (now \- TIMESPAN), e.g. 7d oder 12m..TP.BI \-\-newer \ TIMESPANconsider archives newer than (now \- TIMESPAN), e.g. 7d or 12m..UNINDENT.SH EXAMPLES.INDENT 0.0.INDENT 3.5.sp.nf.ft C# 0. Have borg 2.0 installed on client AND server, have a b12 repo copy for testing.# 1. Create a new \(dqrelated\(dq repository:# here, the existing borg 1.2 repo used repokey\-blake2 (and aes\-ctr mode),# thus we use repokey\-blake2\-aes\-ocb for the new borg 2.0 repo.# staying with the same chunk id algorithm (blake2) and with the same# key material (via \-\-other\-repo <oldrepo>) will make deduplication work# between old archives (copied with borg transfer) and future ones.# the AEAD cipher does not matter (everything must be re\-encrypted and# re\-authenticated anyway), you could also choose repokey\-blake2\-chacha20\-poly1305.# in case your old borg repo did not use blake2, just remove the \(dq\-blake2\(dq.$ borg \-\-repo       ssh://borg2@borgbackup/./tests/b20 rcreate \e       \-\-other\-repo ssh://borg2@borgbackup/./tests/b12 \-e repokey\-blake2\-aes\-ocb# 2. Check what and how much it would transfer:$ borg \-\-repo       ssh://borg2@borgbackup/./tests/b20 transfer \-\-upgrader=From12To20 \e       \-\-other\-repo ssh://borg2@borgbackup/./tests/b12 \-\-dry\-run# 3. Transfer (copy) archives from old repo into new repo (takes time and space!):$ borg \-\-repo       ssh://borg2@borgbackup/./tests/b20 transfer \-\-upgrader=From12To20 \e       \-\-other\-repo ssh://borg2@borgbackup/./tests/b12# 4. Check if we have everything (same as 2.):$ borg \-\-repo       ssh://borg2@borgbackup/./tests/b20 transfer \-\-upgrader=From12To20 \e       \-\-other\-repo ssh://borg2@borgbackup/./tests/b12 \-\-dry\-run.ft P.fi.UNINDENT.UNINDENT.SH SEE ALSO.sp\fIborg\-common(1)\fP.SH AUTHORThe Borg Collective.\" Generated by docutils manpage writer..
 |