Solved

Can I tar linux directory recursively AND Symbolic Links?

Posted on 2012-03-27
3
627 Views
Last Modified: 2012-03-27
I know that I can tar a linux directory with its subdirectories ?

and  can I tar symbolic links with the same command ?

Thanks
0
Comment
Question by:mshamsan
  • 2
3 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 37773243
tar command is recursive.  Yes, you can tar everything together. Just tar the directory and the contents become part of tar
0
 

Author Comment

by:mshamsan
ID: 37773280
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
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 37773324
No switch.

tar pcvf tarfile.tar dirname
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now