public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 3/4] docs: tape/restore: mention single snapshot restore
Date: Fri, 13 May 2022 15:39:38 +0200	[thread overview]
Message-ID: <20220513133939.3845808-3-d.csapak@proxmox.com> (raw)
In-Reply-To: <20220513133939.3845808-1-d.csapak@proxmox.com>

what it is, how to use it and the caveats

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 docs/tape-backup.rst | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/docs/tape-backup.rst b/docs/tape-backup.rst
index fa0172a0..0eb32412 100644
--- a/docs/tape-backup.rst
+++ b/docs/tape-backup.rst
@@ -831,6 +831,29 @@ data disk (datastore):
 
  # proxmox-tape restore 9da37a55-aac7-4deb-91c6-482b3b675f30 mystore
 
+Single Snapshot Restore
+^^^^^^^^^^^^^^^^^^^^^^^
+
+Sometimes it is not necessary to restore a whole media-set, but only some
+specific snapshots from the tape. This can be achieved  with the ``snapshots``
+parameter:
+
+
+.. code-block:: console
+
+ // proxmox-tape restore <media-set-uuid> <datastore> [<snapshot>]
+
+ # proxmox-tape restore 9da37a55-aac7-4deb-91c6-482b3b675f30 mystore sourcestore:host/hostname/2022-01-01T00:01:00Z
+
+This first restores the snapshot to a temporary location, then restores the relevant
+chunk archives, and finally restores the snapshot data to the target datastore.
+
+The ``snapshot`` parameter can be given multiple times, so one can restore
+multiple snapshots with one restore action.
+
+.. NOTE:: When using the single snapshot restore, the tape must be traversed
+   more than once, which, if you restore many snapshots at once, can take longer
+   than restoring the whole datastore.
 
 Update Inventory
 ~~~~~~~~~~~~~~~~
-- 
2.30.2





  parent reply	other threads:[~2022-05-13 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13 13:39 [pbs-devel] [PATCH proxmox-backup 1/4] cli: proxmox-tape: fix ns/depth parameter Dominik Csapak
2022-05-13 13:39 ` [pbs-devel] [PATCH proxmox-backup 2/4] docs: tape: remove note about global content namespace Dominik Csapak
2022-05-13 13:39 ` Dominik Csapak [this message]
2022-05-13 13:39 ` [pbs-devel] [PATCH proxmox-backup 4/4] docs: tape: add information about namespaces Dominik Csapak
2022-05-13 13:59 ` [pbs-devel] applied-series: [PATCH proxmox-backup 1/4] cli: proxmox-tape: fix ns/depth parameter Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220513133939.3845808-3-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal