Re: How to restore snaspshot in nilfs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux