Code Monkey home page Code Monkey logo

Comments (3)

digint avatar digint commented on July 20, 2024

I'm afraid this is the expected behaviour. btrbk does not perform checks on the snapshot_dir, mainly because it can also be a regular directory, and then it will not show up on btrfs subvol list then. This would complicate things on ssh sources, so I decided not to implement checks on this.

Note that there are also other use cases where snapshot creation may fail, and as long as btrfs-progs does not provide a "dry-run" functionality itself, it is almost impossible to really check for all possible errors of the btrfs commands.

I've been thinking of implementing a "btrbk check" action which would do all kind of checking, but for now this is simply "functions as expected"...

from btrbk.

grondinm avatar grondinm commented on July 20, 2024

OK but should it not at least check for the exitense of it by doing a sinple ls or in some other way whether or not it's a subvolume would be irrelevant really just a though

from btrbk.

digint avatar digint commented on July 20, 2024

Originally, I wanted btrbk to depend only on the btrfs command (which makes it much easier to setup a chroot on ssh for example). As btrbk grows, I might need to change this, e.g. for a new "checkconfig" action.

from btrbk.

Related Issues (20)

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.