How to create snapshots with lxc command for LXD

Originally published at: https://www.cyberciti.biz/faq/create-snapshots-with-lxc-command-lxd/

I need to save the state of my existing app running on LXD before I push new Python-based app. How do I create snapshots with lxc command for LXD based Linux container?