[TriLUG] tar/cp/rsync question

Nikolas Everett via TriLUG trilug at trilug.org
Tue Mar 9 13:22:32 EST 2021


Looks like `-h` for me:
$ man tar
/follow symlink
       -h, --dereference
              Follow symlinks; archive and dump the files they point to.

I've never used it so I haven't a clue if there are tricks.

On Tue, Mar 9, 2021 at 1:09 PM Pete Soper via TriLUG <trilug at trilug.org>
wrote:

> I cannot remember or find the options(s) to "copy the file a link points
> to, not the symlink" for any of tar, cp -r, rsync in order to get a full
> copy of files that are spanning storage sites. Can somebody help me? In
> a major hurry. Thanks in advance.
>
> example:
>
>     dir a
>
>     subdir b
>
>     file a/b/x -> c/foo
>
>
> I need to copy a and end up with x being a file with the contents of
> foo, NOT the symlink.
>
>
> Thanks in advance,
>
> Pete
>
>
> --
> This message was sent to: Nik Everett <nik9000 at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
> address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web  :
> https://www.trilug.org/mailman/options/trilug/nik9000%40gmail.com
> Welcome to TriLUG: https://trilug.org/welcome


More information about the TriLUG mailing list