tar: Link name too long for ustar

blixel_at_gmail.com
Date: 06/15/05


Date: 15 Jun 2005 06:56:24 -0700

I'm kind of new to OpenBSD so please forgive my relative ignorance.

I installed OpenBSD 3.7 last night to replace my FreeBSD 4.9 box. The
install was easy and I was able to get Postfix and courier-imap
installed and configured in no time.

I untared my old Maildir.tar.gz to my $HOME directory and was able to
access my e-mail via IMAP with no problem.

The problem I'm running into now is that I'm trying to rebuild my cron
jobs on this machine to backup my users' $HOME/Maildir directories,
starting with my own.

It's a simple script:

#!/bin/sh

cd /home/david ;

if [ -f backups/mailbackup.tar.gz ] ; then
        mv -f backups/mailbackup.tar.gz backups/mailbackup-2.tar.gz ;
fi ;

if [ ! `tar czf backups/mailbackup.tar.gz Maildir` ] ; then
        echo "Backup failed" ;
fi ;

The problem I'm running into is this:

tar: Link name too long for ustar Maildir/.E-Mail Archives.2004.11
November/cur/1100305690.93026_56777845505.soekris.localdomain.com:2,RS

Apparently with OpenBSD's version of tar, I'm more limited with the
length of file and path names than I was before. That's ok - I'm all
about learning new ways of doing things. But so far my searching has
led me in circles so I'm posting this question.

How can I get around this file size limitation? If possible, I'd like
to continue using tar for the sake of familiarity. But I'm willing to
use something like pax to get it working because I'm very uncomfortable
not having my backups running.

I tried using pax like this:

$ cd /home/david
$ pax -wzf backups/mailbackup.pax Maildir

But I basically got the same error:

pax: Link name too long for ustar Maildir/.E-Mail Archives.2004.11
November/cur/1100305690.93026_56777845505.soekris.localdomain.com:2,RS



Relevant Pages

  • Re: Booting off raidz *mostly* work
    ... You could use jot to duplicate various gpart commands to multiple drives, ... Clear 2 drives with up to 3 partitions each: ... Instead of extracting dists from the install media, I chose to build tar files of a system image using procedures gleaned from the jail manpage, that way I can add loader support and plenty of customizations to my image, use an up to date build, even include the source and ports trees for convenience into my tar, and the tar tends to extract in just a couple minutes on the destination system. ...
    (freebsd-current)
  • Re: How to Move from 1 drive to another?
    ... >>Before I forget, install, configure and configure smartmontools. ... thought I would try ReiserFS for the ... >>This will be quicker than doing it with cp or tar. ... boot directories to archive. ...
    (Debian-User)
  • Re: [opensuse] CD/DVD labeling software OSL10.2
    ... install the very common compressed file type .tar and tar.bz2...I can ... there is no file compression performed (so they take up approximately ... The .bz2 extension means that the tar file has been compressed with the ... Often you will find that a tool distributed as a tarfile is just the C ...
    (SuSE)
  • Re: YAST: "Restore System" doesnt! (SUSE 9.0)
    ... Dunno about V9 but 8.1 has the two perl scripts backup_search.pl and ... > create a TAR archive on an NFS drive. ... > install settings, and the deltas from the DVD. ... and just stream each partition raw onto tape or a BZIP2 file. ...
    (alt.os.linux.suse)
  • SUMMARY: Packaging Perl Modules on Solaris...
    ... then untar your tar file and copy all *.pm files in one of this directories. ... This works great for pure perl modules, ... with 'make -n install' in the source directory. ... I then used the ".packlist" files for each module to create the package ...
    (SunManagers)