#!/bin/bash
DIR="."
for file in "$DIR"/vzdump-*.vmz; do
    basename=$(basename "$file")
    if [[ "$basename" != vzdump-qemu-* ]]; then
        newname="${basename/vzdump-/vzdump-qemu-}"
        echo "Renaming: $basename → $newname"
        mv "$file" "$DIR/$newname"
    fi
done

