Solved

Can I tar linux directory recursively AND Symbolic Links?

Posted on 2012-03-27
3
632 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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