Results 1 to 6 of 6

Thread: btrfs rollback (how to)

  1. #1
    Join Date
    Apr 2013
    Location
    Modra, Slovakia
    Posts
    265

    Default btrfs rollback (how to)

    I wanna ask simple question I've some trouble booting... I solved it but I also tried do a rollback, I was in text mode and I did
    Code:
    btrfs subvolume set-default xxx /.snapshots
    xxx - the id of the snapshot (working state)



    (or in chroot live CD it could be
    Code:
    ... set-default xxx /mnt./snapshots


    if you've mounted your system in /mnt of that liveCD session), but I did a lot of changes to system that day so I don't clearly know which snaphsot it should be even if I use
    Code:
    snapper list


    . So my questions is was my method/command right cause I've only found posts like this http://www.howtoforge.com/rollback-t...n-ubuntu-12.10 which was about apt-btrfs-snapshot package but I just if you build from source or change some settings , config files you may want to set any snaphsot you know is good (fully working system as it was before changes) as default
    Or use smth like this
    Code:
    snapper -v undochange 2..3
    - that undo change between snapshot with ID 2-3 but like if I want to undo change between 2-10 it'd be
    Code:
    snapper -v undochange 2..10
    or if you want to undochange on particular dir
    Code:
    snapper -v undochange 2..3 /etc/sysconfig/*
    13.2 KDE 64bit tumbleweed
    Lenovo G500s, Thinkpad R500

  2. #2
    Join Date
    Sep 2012
    Posts
    7,103

    Default Re: btrfs rollback (how to)

    With the default subvolume layout created during installation snapshots cannot be used directly because far too many directories will be missing. I know that there is some work in progress to allow it, but as far as I understood this is not intended as permanent rollback to previous version but rather as possibility to boot into previous snapshot for short term.

    So I guess using snapshots as backup is the only way (i.e. - yuo have old versions of files so you can fetch them from snapshot to replace files in your real filesystem).

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: btrfs rollback (how to)

    If you use Yast (also available in textmode), it may be a bit easier. Use the snapper module, have a look.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4
    Join Date
    Apr 2013
    Location
    Modra, Slovakia
    Posts
    265

    Default Re: btrfs rollback (how to)

    I don't have the snapper snapper module in yast nad I wonder why. And I understand so far that snapper only undo zypper and yast changes by this official guides https://doc.opensuse.org/products/dr...a.snapper.html http://en.opensuse.org/openSUSE:Snapper_Tutorial
    13.2 KDE 64bit tumbleweed
    Lenovo G500s, Thinkpad R500

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: btrfs rollback (how to)

    Quote Originally Posted by roberto68 View Post
    I don't have the snapper snapper module in yast nad I wonder why. And I understand so far that snapper only undo zypper and yast changes by this official guides https://doc.opensuse.org/products/dr...a.snapper.html http://en.opensuse.org/openSUSE:Snapper_Tutorial
    I was assuming you're running 13.1, in the renewed Yast there is a snapper module.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6
    Join Date
    Jun 2008
    Location
    UK
    Posts
    5,500

    Default Re: btrfs rollback (how to)

    Quote Originally Posted by Knurpht View Post
    I was assuming you're running 13.1, in the renewed Yast there is a snapper module.
    As there was in 12.3 (and 12.2 possibly).
    Leap 42.3 (ext4, KDE Plasma 5.8.7) ~ stable
    Manjaro (ext4, Xfce) ~ rolling updates
    Tumbleweed (ext4, KDE Plasma5) ~ managed updates via "Tumbleweed Snapshots" service.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •