warrenliang
IS-IT--Management
Hello,
I would like to exclude a sub-directory from tar. Just could not get the correct syntax done.
Like to backup /users/filed directory but exclude /users/field/patch1 subdirectory.
# cd /buffer
# cat excludeme
patch1
# tar cvfX field.tar excludeme /users/field
...
a /users/field/.sh_history 1K
a /users/field/patch1/ 0K
a /users/field/patch1/profile 2K
a /users/field/patch2/ 0K
a /users/field/patch2/profile 2K
...
O/S: Solaris 9
Thanks in advance,
Warren
I would like to exclude a sub-directory from tar. Just could not get the correct syntax done.
Like to backup /users/filed directory but exclude /users/field/patch1 subdirectory.
# cd /buffer
# cat excludeme
patch1
# tar cvfX field.tar excludeme /users/field
...
a /users/field/.sh_history 1K
a /users/field/patch1/ 0K
a /users/field/patch1/profile 2K
a /users/field/patch2/ 0K
a /users/field/patch2/profile 2K
...
O/S: Solaris 9
Thanks in advance,
Warren