HostImageBackup

HostImageBackup 图片备份工具

A modular Python CLI tool to backup images from various image hosting services to your local machine

一个模块化的Python命令行工具,可将图片从各种图床服务备份到本地计算机

Key Features

核心功能

Multi-Provider Support

多平台支持

Backup images from Aliyun OSS, Tencent COS, SM.MS, Imgur, and GitHub with a single tool.

通过单一工具从阿里云OSS、腾讯云COS、SM.MS、Imgur和GitHub备份图片。

Smart Backup

智能备份

Skip existing files and resume interrupted downloads to save time and bandwidth.

跳过已存在的文件并恢复中断的下载,节省时间和带宽。

Easy Configuration

简单配置

Simple YAML configuration and intuitive CLI commands for quick setup.

简单的YAML配置和直观的CLI命令,快速上手。

Command Line Interface

命令行界面

Powerful CLI with progress tracking, logging, and flexible options.

功能强大的CLI,具有进度跟踪、日志记录和灵活选项。

Getting Started

快速开始

Terminal Session
终端会话
pip install host-image-backup
hib init
✅ Configuration file created at ~/.config/host-image-backup/config.yaml
hib list-providers
🔍 Available providers:
• oss (Aliyun Object Storage Service)
• cos (Tencent Cloud Object Storage)
• smms (SM.MS)
• imgur (Imgur)
• github (GitHub)
hib test --provider oss
🔍 Testing connection to OSS...
✅ Connection successful!
hib backup --provider oss
🔍 Initializing backup for provider: oss
Found 24 images
Downloading [████████████████████] 100% - image1.jpg
Downloading [████████████████████] 100% - image2.png
...
✅ Successfully backed up 24 images to ./backup/
View on GitHub 在GitHub上查看