下载对象
Learn about downloading objects
你可以根据你的使用情况通过多种方式下载 Supabase Storage 的文件。
🌐 You can download Supabase Storage files can in a variety of ways depending on your use case.
从仪表板 #
🌐 From the Dashboard
你可以直接从仪表板的 存储 > 文件 部分下载单个文件,只需浏览到你的存储桶并选择文件即可。
🌐 You can download individual files directly from the Storage > Files section of the Dashboard by browsing to your bucket and selecting files.
使用 Supabase CLI #
🌐 Using the Supabase CLI
你可以使用 supabase storage 命令来列出并复制你关联项目中的对象。
🌐 You can use the supabase storage commands to list and copy objects from your linked project.
查看命令行参考了解可用的命令。
🌐 See the CLI reference for available commands.
使用兼容S3的客户端 #
🌐 Using an S3-compatible client
Supabase Storage 提供了一个兼容 S3 的端点,这意味着你可以使用像 Cyberduck(通过连接配置文件)、AWS CLI 或 rclone 这样的工具来浏览和下载你的文件。
🌐 Supabase Storage exposes an S3-compatible endpoint, which means you can use tools like Cyberduck (via a connection profile), AWS CLI, or rclone to browse and download your files.
连接方式:
🌐 To connect:
- 去仪表板的 存储 > 配置 > S3 部分。
- 启用 S3 协议并生成一个访问密钥 + 密钥对(立即保存,因为它只显示一次)。
- 使用你的 S3 兼容工具,配合从仪表板获取的端点和凭证。
查看 S3 认证文档 获取完整的连接详情。
🌐 See the S3 authentication doc for full connection details.
如果要下载大量对象,使用像 rclone 或 Cyberduck 这样的 S3 兼容工具,比一个一个下载文件要高效得多。
🌐 For downloading a large number of objects, using an S3-compatible tool like rclone or Cyberduck is significantly more efficient than downloading files individually.
使用迁移脚本 #
🌐 Using migration scripts
对于批量下载或项目迁移,你可以使用我们迁移文档中的脚本:
🌐 For bulk downloads or project migrations, you can use the scripts from our migration docs:
文件元数据 #
🌐 File metadata
文件元数据与实际文件分开存储。它存在于你的 Postgres 数据库中的 storage.buckets 和 storage.objects 表里。如果你需要完整备份(文件 + 元数据),请参阅备份和还原指南。
🌐 File metadata is stored separately from the actual files. It lives in the storage.buckets and storage.objects tables in your Postgres database. If you need a complete backup (files + metadata), see the backup and restore guide.