Shell command to tar directory excluding certain files/folders

后端 未结 28 2314
春和景丽
春和景丽 2020-11-27 08:31

Is there a simple shell command/script that supports excluding certain files/folders from being archived?

I have a directory that need to be archived with a sub dire

28条回答
  •  广开言路
    2020-11-27 09:21

    You can also use one of the "--exclude-tag" options depending on your needs:

    • --exclude-tag=FILE
    • --exclude-tag-all=FILE
    • --exclude-tag-under=FILE

    The folder hosting the specified FILE will be excluded.

提交回复
热议问题