Skip to content

Instantly share code, notes, and snippets.

@ricardomiguelfaria
ricardomiguelfaria / backup_all_docker_images.sh
Last active August 11, 2023 20:24 — forked from dieterrosch/backup_all_docker_images.sh
A bash script to backup all docker images to files
#!/usr/bin/sh
if [[ $# -eq 0 ]]; then
echo "Usage: $0 <backup_dir>"
exit
fi
destination=$1
if ! type "pv" > /dev/null; then
echo 'pv' command not found on your system, install it to get a nice progress indicator...
else