This commit implements command backup and snapshot.
This commit moves taking a snapshot of a running instance to a separate function.