[ale] tar and date

Fletch fletch at phydeaux.org
Wed Mar 23 23:12:57 EST 2005


>>>>> "Preston" == Preston Boyington <PBoyington at polyengineering.com> writes:


[...]

    Preston> /bin/tar -zcpf /usr/local/share/data/`date
    Preston> +%Y-%m-%d`.tar.gz /usr/local/share/data/

[...]


    Preston> Does this look remotely correct to anyone?  Anything I am
    Preston> forgetting?

You probably want an --exclude='*.tar.gz' argument to tar since you're
writing the tarballs into the same directory you're tar'ing.

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org|  Vincent, you should cease askin'          \ o.O'
                      |  scary questions." -- Jules                =(___)=
                      |                                               U



More information about the Ale mailing list