linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs ways to travel back in time
@ 2016-03-23 17:41 Vytautas D
  2016-03-23 17:58 ` Austin S. Hemmelgarn
  2016-03-23 17:59 ` Alexander Fougner
  0 siblings, 2 replies; 5+ messages in thread
From: Vytautas D @ 2016-03-23 17:41 UTC (permalink / raw)
  To: Btrfs BTRFS

I can think of few ways to revert changes with btrfs, but I wonder
what are the trade-offs between each method and perhaps there is
already research done on this?

ways to restore a snapshot ( post kernel 3.* ):
a) via set-default
 1. btrfs subvolume set-default / $id
 2. reboot
b) always mount into snapshot
 1. mount -o suvol=/.current $disk # at initrd
 2. btrfs subvol del /.current
 3. btrfs subvol snapshot /.snapshotA /.current
 4. reboot
c) rsync
 1. rsync $options /.snapshotA /.current
 2. reboot

- Vytas Dauksa

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-25 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 17:41 btrfs ways to travel back in time Vytautas D
2016-03-23 17:58 ` Austin S. Hemmelgarn
2016-03-23 17:59 ` Alexander Fougner
2016-03-23 23:08   ` Vytautas D
     [not found]   ` <CAO5K3Od8Xi9KAae9gMCWzm4LHxW9mOBU9UPEB7kVqu6uyJ=j9Q@mail.gmail.com>
2016-03-25 14:43     ` Alexander Fougner

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 NNTP newsgroup(s).