Answer the question
In order to leave comments, you need to log in
How to archive many folders and give them individual archive names?
Good day.
There is a folder with a bunch of directories.
like
/home/user1/
/home/user1/dir1
/home/user1/dir2
/home/user1/dir3
/home/user1/dir4
/home/user1/dir5
..
/home/user1/dir500
Each dir* folder has its own a bunch of files.
How to optimally make SEPARATE archives of dir* folders and delete everything that is in these folders.
Those. the output would be
/home/user1/dir1.tar.gz
/home/user1/dir2.tar.gz
/home/user1/dir3.tar.gz
/home/user1/dir4.tar.gz
/home/user1/dir5 .tar.gz
..
/home/user1/dir500.tar.gz
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question