Re: Heads up: gtar gone from base system

From: Craig Boston (craig_at_xfoil.gank.org)
Date: 03/30/05

  • Next message: John Sconiers: "sysinstall wrapper"
    To: freebsd-current@freebsd.org
    Date: Wed, 30 Mar 2005 07:01:09 -0600
    
    

    On Wednesday 30 March 2005 5:39 am, Stephen McKay wrote:
    > Still, if you are using tar, be sure to use it correctly:
    >
    > ( cd srcdir && tar cf - . ) | ( cd destdir && tar xpf - )
    >
    > You don't want it going off in the current directory and mangling things
    > just because of a little typo in a directory name.

    I wonder, how does this compare to using cpio -p?

    cd srcdir && find -d . -print0 | cpio -p -0d /absolute/destdir

    (other than tar's syntax being easier to remember than cpio)

    gtar used to have problems with truncating device nodes to 16 bits; not that
    it's as much of an issue in the modern era with devfs.

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


  • Next message: John Sconiers: "sysinstall wrapper"

    Relevant Pages

    • Re: Star or gnu cpio, or Something Else?
      ... and fails to recover. ... > I think I have read somwhere that cpio is more or less on it's way out. ... >> next account backup was with tar. ... >> shipped with unreliable backup utilities. ...
      (comp.unix.solaris)
    • Re: Star or gnu cpio, or Something Else?
      ... I think I have read somwhere that cpio is more or less on it's way out. ... > using ufsdump, ... > next account backup was with tar. ...
      (comp.unix.solaris)
    • Re: Linux Backup Administration
      ... Gnutar and star provide extensions to the original tar (which did ... > relative pros and cons of cpio style vs. tar style backup? ... goal is to be able to restore an exactly identical system as fast ... The most likely reason to need the backup is that someone accidentally ...
      (Fedora)
    • [PATCH] update to the initramfs docs.
      ... +The kernel does not depend on external cpio tools, gen_init_cpio is created +from usr/gen_init_cpio.c which is entirely self-contained, and the kernel's +boot-time extractor is also self-contained. ... +Why cpio rather than tar? ... http://freshmeat.net/projects/afio/ + +2) The cpio archive format chosen by the kernel is simpler and cleaner (and ...
      (Linux-Kernel)
    • Re: How to Copy Directory Structure w/o Copying Files
      ... Well, backup/restore are AIX ... tar or cpio will expand them, ... How to Copy Directory Structure w/o Copying Files ...
      (AIX-L)