Commit 84d9a7dc authored by Vitaly Lipatov's avatar Vitaly Lipatov

add backup_podman_a01_images.sh

parent f1132777
#!/bin/sh
DIR=/var/local/backup/a01/podman-images
remote_save()
{
ssh a02 tee "$1" >/dev/null
}
mkdir -p $DIR
podman images | remote_save $DIR/images.list
for id in $(docker images -q) ; do
podman save $id | remote_save $DIR/$id.image
done
#!/bin/sh
DIR=/var/local/backup/a01/podman-images
remote_save()
{
cat > "$1"
}
mkdir -p $DIR
podman images | remote_save $DIR/images.list
for id in $(docker images -q) ; do
podman save $id | remote_save $DIR/$id.image
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment