docker volume ls DRIVER VOLUME NAME local localstack_localstack-docker-desktop-desktop-extension_ls_app_config local ollama local open-webui local touch-api-runtime_minio_storage local touch-api-runtime_touch_mysql_data
打包卷数据 docker run –rm -v touch-api-runtime_minio_storage:/volume -v $(pwd):/backup alpine tar czf /backup/touch-api-runtime_minio_storage.tar.gz -C /volume .
docker run –rm -v touch-api-runtime_touch_mysql_data:/volume -v $(pwd):/backup alpine tar czf /backup/touch-api-runtime_touch_mysql_data.tar.gz -C /volume .
回复卷数据 docker run –rm touch-api-runtime_minio_storage:/volume -v $(pwd):/backup alpine sh -c “tar czf /backup/touch-api-runtime_minio_storage.tar.gz -C /volume”
docker run –rm touch-api-runtime_touch_mysql_data:/volume -v $(pwd):/backup alpine sh -c “tar czf /backup/touch-api-runtime_touch_mysql_data.tar.gz -C /volume”