Could you please tell me that directory a has been excluded when the tar is compressed? But there is a A1 directory under directory A that needs to be compressed.
Can you tell me how to solve this problem?
There is a big column under this site directory. But there is also a a1 small column under the A big column.
A large number of folders or files under the column. It doesn’t need to be compressed. But I need to compress the a1 small directory into a directory package.
Please use the following command to write. How to include a1 small directory to be compressed
tar –exclude=A -zcf /data/piaoyun.cc.tar.gz -C /home/piaoyun.cc
You can pack them separately and then merge them. Seehttp://segmentfault.com/q/1010000000633658#a-1020000000633696
Note that it cannot be compressed when packing separately. You need to use gzip or bzip2 to compress after merging.