Files
tldr/pages.zh/common/immich-go.md

25 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# immich-go
> Immich-Go 是一个开源工具,旨在简化将大型照片集合上传到自托管的 Immich 服务器的过程。
> 另见:`immich-cli`。
> 更多信息:<https://github.com/simulot/immich-go>。
- 将 Google Photos 导出文件上传到 Immich 服务器:
`immich-go -server={{server_url}} -key={{server_key}} upload {{path/to/takeout_file.zip}}`
- 导入 2019 年 6 月拍摄的照片,同时自动生成相册:
`immich-go -server={{server_url}} -key={{server_key}} upload -create-albums -google-photos -date={{2019-06}} {{path/to/takeout_file.zip}}`
- 使用配置文件中的服务器和密钥上传导出文件:
`immich-go -use-configuration={{~/.immich-go/immich-go.json}} upload {{path/to/takeout_file.zip}}`
- 检查 Immich 服务器内容,删除低质量图像,并保留相册:
`immich-go -server={{server_url}} -key={{server_key}} duplicate -yes`
- 删除所有以“YYYY-MM-DD”模式创建的相册
`immich-go -server={{server_url}} -key={{server_key}} tool album delete {{\d{4}-\d{2}-\d{2}}}`