Chuck Peters on Thu, 19 Apr 2001 15:10:09 -0400


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

Re: [PLUG] TAR command line question


On Thu, 19 Apr 2001, Bill Jonas wrote:

> $ tar cf - . |gzip -c - >file.tar.gz #Compress the file along the way

GNU tar has compression built in, this does the same thing.
tar czf . file.tar.gz    

On the old BSDi machine I used to do something like this:

tar cpvf - . |gzip -9 > file.tar.gz

Another useful thing is to make the tar archive on a different machine
using ssh.
tar cvf - source_directory | ssh user@remote_host 'cat > my-tar-file.tar'


Chuck


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug