• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 656
  • Last Modified:

Can I tar linux directory recursively AND Symbolic Links?

I know that I can tar a linux directory with its subdirectories ?

and  can I tar symbolic links with the same command ?

Thanks
0
mshamsan
Asked:
mshamsan
  • 2
1 Solution
 
farzanjCommented:
tar command is recursive.  Yes, you can tar everything together. Just tar the directory and the contents become part of tar
0
 
mshamsanAuthor Commented:
thanks, would you please send me an example of a recursive tar ..

Secondly, so the Symbolic Links will be part of tar with any special switch or consideration, right?
0
 
farzanjCommented:
No switch.

tar pcvf tarfile.tar dirname
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now