D
D
Damian Lewis2021-09-08 15:42:53
linux
Damian Lewis, 2021-09-08 15:42:53

Batch zip folders in 7zip?

There are about 1000 data folders. Each folder has subfolders and files. You only need to archive the main 1000 folders individually. By type one folder -> one archive. Do it manually for a long time. How can you check this?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rsa97, 2021-09-08
@DamianLewis

find /base/directory/* -maxdepth 0 -type d -exec 7z a -r {}.7z {}/* \;

V
Vasily Bannikov, 2021-09-08
@vabka

Write a bash script (if linux)
Or pwsh (if windows)
7zip has a console version - 7zip.exe for this.
https://sevenzip.osdn.jp/chm/cmdline/syntax.htm

P
pfg21, 2021-09-08
@pfg21

https://habr.com/ru/company/ruvds/blog/325928/
Bypass files contained in a directory

D
Denis, 2021-09-16
@Sat0shi

GNU Parallel if Linux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question