# Install dependenciespipinstall'dsnap[cli]'brewinstallvagrantbrewinstallvirtualbox# Get snapshot from imagemkdirsnap_wordir; cdsnap_workdirdsnapinit## Download a snapshot of the volume of that instance## If no snapshot existed it will try to create onedsnapget<instance-id>dsnap--profiledefault--regioneu-west-1geti-0d706e33814c1ef9a## Other way to get a snapshotdsnaplist#List snapshotsdsnapgetsnap-0dbb0347f47e38b96#Download snapshot directly# Run with vagrantIMAGE="<download_file>.img"vagrantup#Run image with vagrant+virtuaboxIMAGE="<download_file>.img"vagrantssh#Access the VMvagrantdestroy#To destoy# Run with dockergitclonehttps://github.com/RhinoSecurityLabs/dsnap.gitcddsnapmakedocker/buildIMAGE="<download_file>.img"makedocker/run#With the snapshot downloaded
# Copy the snapshotawsec2copy-snapshot--source-regionus-east-2--source-snapshot-idsnap-09cf5d9801f231c57--destination-regionus-east-2--description"copy of snap-09cf5d9801f231c57"# View the snapshot infoawsec2describe-snapshots--owner-idsself--regionus-east-2# Download the snapshot. The ID is the copy from your accountdsnap--regionus-east-2getsnap-027da41be451109da# Delete the snapshot after downloadingawsec2delete-snapshot--snapshot-idsnap-027da41be451109da--regionus-east-2