Comments (6)
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.
Well I am not a Phyton developer, but I'll try to do my best.
Best regards, Marcelo.
from buttervolume.
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.
Yes that right, this will looks like revert method which call btrf subvolume snapshot as you said.
Regards,
from buttervolume.
clone.patch.txt
Here a patch for cli.py and plugin.py including clone functionality. Marcelo.
from buttervolume.
as long #11 was merged I close this issue!
from buttervolume.
Related Issues (20)
- volume labels are losts HOT 1
- documentation for migrating existing volumes (on btrfs) to buttervolume HOT 1
- Using Buttervolume inside Docker container HOT 5
- docker-runc has become runc in docker-ce 18.9.0 HOT 4
- sshd zombie process HOT 9
- userns-remap and buttervolume
- purge : prevent confusing m with month
- Allow to use buttervolume without any BTRFS partition
- /var/lib/buttervolume/config/config.ini is not read HOT 3
- Cannot enable plugin: No btrfs.sock created HOT 7
- exec failed: container "xxxxx" does not exist HOT 3
- Compression is not working? HOT 4
- Allow to enable/disable all the schedules at once HOT 3
- kill the schedule Timer when the main process is killed? HOT 1
- Change SSH port HOT 1
- Error 500 when creating volume in version 3.9 HOT 3
- cow = opts.get : AttributeError: 'NoneType' object has no attribute 'get'" HOT 1
- incremental snapshot to object storage
- freeze due to old-style front-end mode (unix socket)
- Relationship to the built-in BTRFS storage driver? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buttervolume.