Skip to content

Conversation

Copy link

Copilot AI commented Nov 26, 2025

Adds configuration parameters for 7z to specify compression algorithm and native volume splitting. When using 7z's native -v splitting, the external split_with stage cannot be used simultaneously.

Changes

  • method: Compression algorithm selection (-m0=), e.g., LZMA, LZMA2, PPMd, BZip2, Deflate, Copy
  • volume_size: Native 7z volume splitting (-v), e.g., "100m", "1g"
  • Conflict validation: Returns error if both volume_size and split_with are configured

Example

models:
  my_backup:
    compress_with:
      type: 7z
      method: LZMA2
      compression_level: 9
      volume_size: 100m
    # split_with: ... # Cannot use with volume_size
Original prompt

7z增加配置参数实现支持指定压缩算法,指定分包大小(当使用7z压缩时的原生分包参数,则无法使用原本的Splitter作为下一阶段,如果同时启用,请报错提示)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: LazuliKao <46601807+LazuliKao@users.noreply.github.com>
Copilot AI changed the title [WIP] Add configuration parameters for 7z compression Add compression method and volume splitting support for 7z compressor Nov 26, 2025
Copilot AI requested a review from LazuliKao November 26, 2025 15:41
@LazuliKao LazuliKao marked this pull request as ready for review November 26, 2025 15:46
@LazuliKao LazuliKao merged commit 095ba47 into main Nov 26, 2025
3 checks passed
@LazuliKao
Copy link
Owner

@copilot 添加docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants