Giter Club home page Giter Club logo

Comments (4)

jrabinow avatar jrabinow commented on July 17, 2024 1

The difference between the built-in rollback and this script is that snapper can't make any assumptions around the partitions/subvolumes layout.
snapper rollback moves subvolumes and mounts them so that the system is rolled back but introduces techdebt: the subvolume layout becomes complex to work with, and this complexity increases every time the rollback is run.
snapper-rollback keeps the same exact subvolume layout, but the flipside is that it has to assume a specific partition layout.

This script can be run both from a live image and from a system installed to a hard drive. The only difference between running it from a hard drive and running it from a live image is the config file /etc/snapper-rollback.conf takes different values.

If you're looking for context around how things work, archwiki is the best resource: snapper-rollback just automates the wiki page.
If you're looking for context on the partition layout choice, I'd recommend going through this btrfs wiki page and this reddit thread

Good docs are important and take effort. Would creating a PR that updates the repo readme and/or adds a docs directory with what you've learned, make sense to help the next person asking these questions?

from snapper-rollback.

konstantin1722 avatar konstantin1722 commented on July 17, 2024

In that case, I will look into this issue soon and make an edit to the readme file.

I don't know how long this one's gonna take. But I think I can say I'm making a promise to do it.

from snapper-rollback.

thebestcloudislocal avatar thebestcloudislocal commented on July 17, 2024

Another difference is that snapper-rollback leaves a @YYYY-MM-DDTHH:MM-subvolume forever, if I understand it correctly.
I have about ten @YYYY-MM-DDTHH:MM subvolumes now. Can I delete them? If so, how?

from snapper-rollback.

jrabinow avatar jrabinow commented on July 17, 2024

@thebestcloudislocal yes, you can delete those as soon as you feel comfortable that your system is working as intended and that there's no data you'd like to recover from the old snapshot.

For deletion, simply mount the btrfs root partition anywhere you like and delete the snapshot just like you would delete any other snapshot. Please make sure to delete the right snapshot - once it's deleted, it's gone forever!

from snapper-rollback.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.