Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "Split to Volumes" 7zip feature #99

Closed
Kcchouette opened this issue Mar 4, 2020 · 11 comments
Closed

Support "Split to Volumes" 7zip feature #99

Kcchouette opened this issue Mar 4, 2020 · 11 comments
Labels
enhancement New feature or request feedback Need feedback from issuer for archiving Issue on archiving, compression or encryption

Comments

@Kcchouette
Copy link
Contributor

On 7zip, we can Split to Volumes the target file/folder we want to put in 7zip using -v

Here the documentation Parameters -v{Size}[b | k | m | g] Specifies volume sizes in Bytes, Kilobytes (1 Kilobyte = 1024 bytes), Megabytes (1 Megabyte = 1024 Kilobytes) or Gigabytes (1 Gigabyte = 1024 Megabytes). If you specify only {Size}, 7-zip will treat it as bytes.

It's possible to specify several values. Eg; 10k 15k 2m creates three volumes; 10KB, 15KB, and 2MB in size.

Thanks in advance

@miurahr miurahr added enhancement New feature or request for archiving Issue on archiving, compression or encryption help wanted Extra attention is needed labels Mar 4, 2020
@miurahr

This comment has been minimized.

@miurahr miurahr added this to the v0.7_Encryption support milestone Mar 9, 2020
@github-actions
Copy link

github-actions bot commented Apr 9, 2020

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@Kcchouette
Copy link
Contributor Author

Maybe should you deactivate github-actions (bot) as:

@github-actions github-actions bot closed this as completed May 1, 2020
@miurahr miurahr reopened this May 1, 2020
@miurahr miurahr removed this from the Encryption support milestone May 9, 2020
@miurahr miurahr added the needs more info Need more information or test data to reproduce label May 22, 2020
@miurahr

This comment has been minimized.

@miurahr
Copy link
Owner

miurahr commented May 22, 2020

@Kcchouette If you want to extract files such as data.7z.001 data.7z.002 data.7z.003, you can do it without py7zr modification as follows;

cat data.7z.001 data.7z.002 data.7z.003 > data.7z
py7zr x data.7z

You can also create sliced archives

split -a 3 -b 10k data.7z

You can find files data.7z.001 data.7z.002 data.7z.003

@miurahr

This comment has been minimized.

@miurahr miurahr added good first issue Good for newcomers and removed needs more info Need more information or test data to reproduce labels May 22, 2020
@miurahr
Copy link
Owner

miurahr commented May 23, 2020

It is good chance for contributor to add command line option and add function described above in py7zr/cli.py.
For creation,

  1. create archive.7z as ordinal but on temporary directory.
  2. split archive into a several files with a specified size.

@miurahr
Copy link
Owner

miurahr commented Jun 1, 2020

#134 is super simple implementation. Does it help @Kcchouette ?

@miurahr miurahr removed good first issue Good for newcomers help wanted Extra attention is needed labels Jun 1, 2020
@miurahr
Copy link
Owner

miurahr commented Jun 1, 2020

v0.7.2 with the feature as CLI is now released.

@miurahr miurahr added the feedback Need feedback from issuer label Jun 1, 2020
@Kcchouette
Copy link
Contributor Author

Thanks, it's exactly what I wanted
Maybe should you document that? https://py7zr.readthedocs.io/en/latest/py7zr.html#command-line-options

@miurahr
Copy link
Owner

miurahr commented Jun 7, 2020

Document updated. I'd like to close.

@miurahr miurahr closed this as completed Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feedback Need feedback from issuer for archiving Issue on archiving, compression or encryption
Projects
None yet
Development

No branches or pull requests

2 participants