Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does someone correctly delete snapshots? #2

Open
sethcall opened this issue Jul 27, 2013 · 3 comments
Open

How does someone correctly delete snapshots? #2

sethcall opened this issue Jul 27, 2013 · 3 comments

Comments

@sethcall
Copy link

I'm just going into lxcpath/snapshots and whacking them using rm -rf

Is that correct?

i.e., sudo rm -rf /var/lib/lxc/snapshots/chef_1

@hallyn
Copy link
Owner

hallyn commented Jul 27, 2013

Quoting Seth Call (notifications@github.com):

I'm just going into lxcpath/snapshots and whacking them using rm -rf

Is that correct?

i.e., sudo rm -rf /var/lib/lxc/snapshots/chef_1

That's fine. You could also do

lxc-destroy -P /var/lib/lxc/snapshots -n chef_1

but the rm is easier to type :)

As you use this, if you find features/details that would make
it much more useful please do document them, so that I can try
to address them when I move lxc-snap into lxc itself.

-serge

@sethcall
Copy link
Author

sethcall commented Aug 2, 2013

Hey hallyn, thanks:

2 that come to mind:

destroy

lxc-snap -d c

create output improvement + new argument

lxc-snap c (which already exists--it does a create), should return the name of the snapshot it created. Also, it should take an optional parameter allowing the user to specify the snapshot name (very useful in scripts so that you don't have to guess what the name of the new snapshot is)

@hallyn
Copy link
Owner

hallyn commented Aug 3, 2013

Quoting Seth Call (notifications@github.com):

Hey hallyn, thanks:

2 that come to mind:

destroy

lxc-snap -d c

create output improvement + new argument

lxc-snap c (which already exists--it does a create), should return the name of the snapshot it created. Also, it should take an optional parameter allowing the user to specify the snapshot name (very useful in scripts so that you don't have to guess what the name of the new snapshot is)

Yup - that'll be trivial to add once I get the snapshot support into
the api. lxc-snap will then just be a thin wrapper around the API
function, and these are great suggestions for bits to add there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants