Can we restore deleted container from its snapshot?

Hi ,

I have created a container having ZFS file system , and took its snapshot which i can see from “lxc info c1” command that snapshot is being taken , now i want to delete the container and want to restore it from snapshot is it possible ?? i cant find the path where my snapshots are being saved on server

Sounds like you’ve been using LXD, so that would be lxc restore c1 SNAPNAME, this needs to be done when the container exists as deleting it will also delete all snapshots associated with it.

hmm thanks @stgraber . is there any way that i can have snapshots saved somewhere even i delete the container ? is it possible ?

No, it’s not possible as the majority of storage backends store snapshots as delta on the base volume, when that base volume is deleted all snapshots are similarly deleted.