Can you please tell me how can I tar ball/compress a directory hierarchy with soft links in linux?
Thank you.
|
Can you please tell me how can I tar ball/compress a directory hierarchy with soft links in linux? Thank you.
| |||||
feedback
|
|
GNU tar normally includes symlinks in the tarball it generates. If you want it to include the file the symlink points to instead then pass it | |||
|
feedback
|
|
When used with standard arguments tar xvf the soft link are saved in the tar archive as soft-links. Then there is 2 cases
If you want to tar the file and not the symlink, you can use the -h / --dereference argument. | |||
|
feedback
|