Solved

Can I tar linux directory recursively AND Symbolic Links?

Posted on 2012-03-27
3
629 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

776 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