Git Product home page Git Product logo

Comments (6)

petrus-v avatar petrus-v commented on June 1, 2024

Hi @marcelo-ochoa,

Thanks for reporting here! we haven't plan to implement this feature right now but we would be please to review and merge your contribution if you create a PR.

Please let us know what you intent to do?

regards

from buttervolume.

marcelo-ochoa avatar marcelo-ochoa commented on June 1, 2024

Well I am not a Phyton developer, but I'll try to do my best.
Best regards, Marcelo.

from buttervolume.

marcelo-ochoa avatar marcelo-ochoa commented on June 1, 2024

Well using btrfs command line I got my desired functionality by simple executing:
# btrfs subvolume snapshot /var/lib/docker/volumes/apex-5.1.4 /var/lib/docker/volumes/apex-5.1.4-app4
after that running docker volume command shows a correct output :)

# docker volume ls
DRIVER              VOLUME NAME
local               480892f214a8514905e1112227a1f031a1d5527d7edbed56a7a380afe6577477
local               5742d0cd1d4a0833d18f0e542393a01930e7131f6e4dc757faa4e4b3dba88f67
local               7e633ed027cb1a3d1825559d0092ec21da6641fda21c530fe4e98ae38475b761
btrfs               apex-5.1.4
btrfs               apex-5.1.4-app1
btrfs               apex-5.1.4-app2
btrfs               apex-5.1.4-app3
btrfs               apex-5.1.4-app4

So we have the alternative of working with btrfs commands or adding a hook in cli.py and plugin.py to accept a command like:
$ docker exec -ti plugin_btrfs buttervolume clone apex-5.1.4 apex-5.1.4-app4
to run above btrfs command.
Best regards, Marcelo.

from buttervolume.

petrus-v avatar petrus-v commented on June 1, 2024

@marcelo-ochoa,

Yes that right, this will looks like revert method which call btrf subvolume snapshot as you said.

Regards,

from buttervolume.

marcelo-ochoa avatar marcelo-ochoa commented on June 1, 2024

clone.patch.txt
Here a patch for cli.py and plugin.py including clone functionality. Marcelo.

from buttervolume.

petrus-v avatar petrus-v commented on June 1, 2024

as long #11 was merged I close this issue!

from buttervolume.

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.