From: Alexander Puchmayr <alexander.puchmayr@linznet.at>
To: linux-xfs@vger.kernel.org
Subject: Re: how to restore a snapshot in XFS ?
Date: Sun, 12 May 2024 19:51:25 +0200 [thread overview]
Message-ID: <5778721.DvuYhMxLoT@zeus> (raw)
In-Reply-To: <PR3PR04MB7340EFE53D742D347C9ACE58D6E12@PR3PR04MB7340.eurprd04.prod.outlook.com>
On Sonntag, 12. Mai 2024, 14:30:12 CEST Bernd Lentes wrote:
> Hi,
>
> I just created a XFS Partition to store raw images of qemu domains on it.
> I create snapshots of these files with cp --reflink.
> Is that the correct way ?
>
> Now I want to go back to such a snapshot. How do I achieve this ?
> Just copy the snapshot over the original ?
>
I'm following this strategy for several years now, in in case I need to
restore from such a "backup", I use cp --reflink when copying the snapshot over
the original.
Without the --reflink you'd get a completely new copy of your snapshot, and
when producing new snapshots they will not have anything in common with your
previous snapshots --> more disc space.
Alex
> Thanks.
>
> Bernd
>
>
> --
>
> Bernd Lentes
> SystemAdministrator
> Institute of Metabolism and Cell Death
> Helmholtz Zentrum München
> Building 25 office 122
> Bernd.lentes@helmholtz-munich.de
> +49 89 3187 1241
>
> Helmholtz Zentrum München – Deutsches Forschungszentrum für Gesundheit und
> Umwelt (GmbH)
Ingolstädter Landstraße 1, D-85764 Neuherberg,
> https://www.helmholtz-munich.de Geschäftsführung: Prof. Dr. med. Dr. h.c.
> Matthias H. Tschöp, Dr. Michael Frieser | Aufsichtsratsvorsitzende:
> MinDir’in Prof. Dr. Veronika von Messling Registergericht: Amtsgericht
> München HRB 6466 | USt-IdNr. DE 129521671
prev parent reply other threads:[~2024-05-12 18:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-12 12:30 how to restore a snapshot in XFS ? Bernd Lentes
2024-05-12 17:51 ` Alexander Puchmayr [this message]
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=5778721.DvuYhMxLoT@zeus \
--to=alexander.puchmayr@linznet.at \
--cc=linux-xfs@vger.kernel.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).