Re: tar a complete drive excluding one directory

From: Radek Kozlowski (radek_at_raadradd.com)
Date: 10/17/04

  • Next message: cpghost_at_cordula.ws: "Re: Text-based mail program which handles webmail."
    Date: Sun, 17 Oct 2004 16:15:25 +0200
    To: Oliver Fuchs <oliverfuchs@onlinehome.de>
    
    

    On Sun, Oct 17, 2004 at 03:24:45PM +0200, Oliver Fuchs wrote:
    > Hi,
    >
    > I want in FreeBSD RELEASE 5.2.1 tar a complete / system except one directory
    > e.g. /mnt where I want to store the tar archive.
    > In linux I do:
    >
    > cd /
    > tar cvzf /mnt/root.bak-$(date +%Y%m%d).tar.gz . --exclude=proc --exclude=mnt
    >
    > Trying this in FreeBSD is not accepted because tar is still trying to tar
    > the /mnt directory and the to be made archive.

    Try:
            
            # tar --exclude=proc --exclude=proc -cvzf \
                    /mnt/root.bak-$(date +%Y%m%d).tar.gz .

    -Radek

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: cpghost_at_cordula.ws: "Re: Text-based mail program which handles webmail."

    Relevant Pages

    • Re: How do I backup a reiserfs drive to another drive?
      ... >>I'm running Arch Linux 0.6, and I would like to have some kind of backup ... All the OS tweaking I had done, for example how to install the ... GNU tar". ... Thats where I have all my user data. ...
      (comp.os.linux.misc)
    • Re: slow tar performance on fbsd5
      ... > I had to unpack a lot of tar archives and I occasional noticed terrible ... Six times faster than on a FreeBSD. ... I'm not a linux ...
      (freebsd-performance)
    • Re: Value too large to be stored in data type -- gzipped tarball
      ... I think your problem is just a Linux tar to ... >> FreeBSD tar quirk. ... the only easy workaround is to mount the DVD ...
      (freebsd-questions)
    • Re: I give up
      ... YOU Tell the tar people, they are flabbergasted that linux is ... Linux is not unstable. ... The patch to do that caught tar users totally off-guard, ... "Don't discount flying pigs before you have good air defense." ...
      (Linux-Kernel)
    • shockwave support in FC1?
      ... Linux or some cruddier OS's. ... get the shockwave plug in. ... But when I cd to the root, ... tar: Error is not recoverable: exiting now ...
      (Fedora)