[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Backing up with tar and gzip



"José Luis Chafardet G." <joseluis@xxxxxxxxxxxxxxxx> wrote:
> Thanks, now there is any way to create in 1 steep a tar.gz ? without to
> do tar -cf file.tar somedir
> And
> Gzip -cr9 "CANTREMEMBER" file.tar

The following will work on most platforms (definitely all RaQs).

tar cpz -f out.tar.gz <dir>

This will work on platforms which don't have a tar supporting the -z flag.

tar cp -f out.tar <dir>; gzip out.tar

Both generate out.tar.gz.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/