Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to compress a symbolic link?
  2. -bash-3.00$ ls -ail
  3. 1263583 lrwxrwxrwx  1 root     root       18 Apr 18  2008 mainwebsite_html -> ../../var/www/html
  4.  
  5. -bash-3.00$ tar -cjvf archive.tar.bz2 mainwebsite_html
  6.  
  7. -bash-3.00$ ls -ail
  8. 7509101 -rw-r--r--  1 user1 user1  136 Feb 22 08:57 archive.tar.bz2
  9. 1263583 lrwxrwxrwx  1 root     root       18 Apr 18  2008 mainwebsite_html -> ../../var/www/html
  10.        
  11. -h, --dereference
  12.           follow symlinks; archive and dump the files they point to