Linux NILFS development
 help / color / mirror / Atom feed
From: Ryusuke Konishi <konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
To: notstop-EMRzualFZlQ@public.gmane.org
Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: How to restore snaspshot in nilfs?
Date: Thu, 28 Jul 2011 10:25:36 +0900 (JST)	[thread overview]
Message-ID: <20110728.102536.53123850.ryusuke@osrg.net> (raw)
In-Reply-To: <BLU152-W567E135957B79607CC415ECE350-MsuGFMq8XAE@public.gmane.org>

Hi,
On Wed, 27 Jul 2011 23:19:34 +0200, ffffd sssd wrote:
> Given several checkpoints, from 1 to 14, and those corresponding to
> 7, 10, 11 and 14 are snapshots, how can I revert the entire
> filesystem to the stage 10, for example, discarding all the newer?
> The only way I've found is to mount the snapshot 10 separately, copy
> to another disk the contents, format the nilfs and copy back again
> from the temporal disk to the nilfs...

Nilfs does not have a native revert function yet.  So, you need to
synchronize the current mount point with a snapshot as follows:

 # mkdir /nilfs /snap
 # mount -t nilfs2 /dev/xxx /nilfs
 # mount -t nilfs2 -o ro,cp=10 /dev/xxx /snap

 # rsync -axv --delete /snap/ /nilfs/


Regards,
Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2011-07-28  1:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BLU152-W53BCFBB71148893681289CE350@phx.gbl>
     [not found] ` <BLU152-W1990E7DAA23E5566FC3925CE350@phx.gbl>
     [not found]   ` <BLU152-W1990E7DAA23E5566FC3925CE350-MsuGFMq8XAE@public.gmane.org>
2011-07-27 21:19     ` How to restore snaspshot in nilfs? ffffd sssd
     [not found]       ` <BLU152-W567E135957B79607CC415ECE350-MsuGFMq8XAE@public.gmane.org>
2011-07-28  1:25         ` Ryusuke Konishi [this message]
     [not found]           ` <20110728.102536.53123850.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-08-01  5:53             ` atime David Sariel
     [not found]               ` <4E363F5D.7060302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-08-02  3:24                 ` atime Ryusuke Konishi

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=20110728.102536.53123850.ryusuke@osrg.net \
    --to=konishi.ryusuke-zyj7fxus5i5l9jvzuh4aog@public.gmane.org \
    --cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=notstop-EMRzualFZlQ@public.gmane.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