All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ken Fuchs <kfuchs@winternet.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] restoring filesystem state using snapshot
Date: Thu Jan  8 17:22:02 2004	[thread overview]
Message-ID: <200401082225.i08MPmp29862@ecstasy.winternet.com> (raw)
In-Reply-To: <BAY9-F24lkA9e8UVHod0001148a@hotmail.com> (kanikanema@hotmail.com)

Kanika Nema wrote:

>i want to restore the filesystem state using only the snapshot taken by LVM 
>ie without taking a full backup.
>is this possible to do? i read all the lvm commands, but there is no command 
>to actually restore the entire filesystem back to the state it was in, when 
>the snapshot was taken.
>though the old files' state can be viewed using the snapshot volume, i want 
>to take the filesystem back to the prev state.
>Please tell me if this can be done. its urgent.

Will copying the contents of the snapshot over the original logical
volume do what you want?  If so, this can be done as follows:

# mount /dev/vg/snapshot /snap
# mount /dev/vg/original /orig
# (cd /snap; tar cf - .) | (cd /orig; tar xvf -)

Of course the v option on the second tar invocation can be omitted to
avoid seeing all the filenames of the files being copied.

Sincerely,

Ken Fuchs <kfuchs@winternet.com>

  reply	other threads:[~2004-01-08 17:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-08 12:21 [linux-lvm] restoring filesystem state using snapshot kanika nema
2004-01-08 17:22 ` Ken Fuchs [this message]
2004-01-09  9:57   ` Cameron Hutchison
  -- strict thread matches above, loose matches on Subject: below --
2004-01-08 17:25 Little, Chris
2004-01-09 13:19 kanika nema

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=200401082225.i08MPmp29862@ecstasy.winternet.com \
    --to=kfuchs@winternet.com \
    --cc=linux-lvm@sistina.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.