From 03e9a2601806d40f3be5f437e144d8d1a8dff579 Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Tue, 4 Oct 2022 09:02:18 -0500 Subject: [PATCH] Update copy documentation to use --from-repo option Removing the last references to the deprecated --repo2 option --- doc/045_working_with_repos.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/045_working_with_repos.rst b/doc/045_working_with_repos.rst index 8f702bc6c..6da4b707b 100644 --- a/doc/045_working_with_repos.rst +++ b/doc/045_working_with_repos.rst @@ -144,14 +144,14 @@ and / or a comma-separated tag list: .. code-block:: console - $ restic -r /srv/restic-repo copy --repo2 /srv/restic-repo-copy --host luigi --path /srv --tag foo,bar + $ restic -r /srv/restic-repo-copy copy --from-repo /srv/restic-repo --host luigi --path /srv --tag foo,bar It is also possible to explicitly specify the list of snapshots to copy, in which case only these instead of all snapshots will be copied: .. code-block:: console - $ restic -r /srv/restic-repo copy --repo2 /srv/restic-repo-copy 410b18a2 4e5d5487 latest + $ restic -r /srv/restic-repo-copy copy --from-repo /srv/restic-repo 410b18a2 4e5d5487 latest Ensuring deduplication for copied snapshots ------------------------------------------- @@ -170,7 +170,7 @@ using the same chunker parameters as the source repository: .. code-block:: console - $ restic -r /srv/restic-repo-copy init --repo2 /srv/restic-repo --copy-chunker-params + $ restic -r /srv/restic-repo-copy init --from-repo /srv/restic-repo --copy-chunker-params Note that it is not possible to change the chunker parameters of an existing repository.