What is  @LongLink?

Posted on 2007-07-23
Last Modified: 2013-12-27
I found a  @LongLink in a directory. What is  @LongLink? What do I do with this?
Question by:jamie_lynn
    LVL 38

    Expert Comment

    This is a known problem with Solaris tar, when a tar ball (contains long filename/path) and I recommend you to use GNU tar to handle long path/filename backup, you can download tne binary GNU tar package from:

    or use cpio or unsdump/ufsrestore instead.

    Author Comment

    How did I get this@longlink in the first place? How would I use cpio or unsdump/ufsrestore? Could you give me the exact command to use them?
    LVL 38

    Accepted Solution

    >>How did I get this@longlink in the first place?

    The problem is  that when you use the native Solaris tar to create the tar ball to backup files full path  exceeded 100 characters, and you try to use tar to extract the files from the tar ball, Solaris native tar could not restore the filename with path >= 101 char.

    tar -cvf backup.tar /path-to/file
        Note: /path-to/file >=101 chars

    when you do:
    tar xvf backup.tar
    it will cause the problem you have.

    To work around:
    Downdoa GNU tar (it is install in /usr/local/bin) from:

    to create and restore the tar ball.

    How would I use cpio or unsdump/ufsrestore?
    man cpio
    man ufsdump/ufsrestore

    PS: ufsdump/ufsrestore is good for system leve backup.

    simple example:
    to back use coip:
         cat /tmp/list | cpio -oacv > /tmp/machine-name.cpio
    to restore
         cd /mydir
         cpio -icdmuv < machine-name.cpio

      Copy files to a tape:
            $ ls | cpio -oacv -O /dev/rmt/0n
            Extract file from the tape:
            $ cpio -icdmuv -I /dev/rmt/0n
            Verify what's on the tape
            $ cpio -ictv < /dev/rmt/0n
            cpio copy files from one dir to another dir:
            find . -print | cpio -oacv | (cd /backupdir; cpio -icdmuv )
    Use ufsdump/ufsrestore:

    Full backup to tape:
            mt -f /dev/rmt/0 rewind
             for fs in `df -Fufs|awk '{print $1}'`
                ufsdump 0uf /dev/rmt/0n $fs

     ufsrestore rf dev/rmt/0n

    from one dir to other: (note that it is for whole filesystem!)
     ufsdump 0f - fs | ( cd /mydir ; ufsrestore rf -)

    the man page should give enough examples.

    Author Comment


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    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…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now