Tuesday, May 12, 2009

following symlinks with tar

tar -cvfh somedirectory.tar somedirectory/

Note 1: -h allows tar to follow symlink
Note 2: it seems trying to gzip it with -z flag doesn't work when invoking -h
Note 3: This assumes there are symlinks under somedirectory/

0 comments: