How on earth do I tar a directory up to a tarfile?
I looked at the man page and it aint working - my head is mush today. That
teaches me to go out drinking on a work night!!
Thanks
Allan
___
Scottish mailing list
[EMAIL PROTECTED]
On Fri, 21 Mar 2003, Allan Bruce wrote:
How on earth do I tar a directory up to a tarfile?
I looked at the man page and it aint working - my head is mush today. That
teaches me to go out drinking on a work night!!
tar -cf tarfile.tar directory
--
Miah Gregory
tar -cvf foo.tar foo_dir
--
ray
___
Scottish mailing list
[EMAIL PROTECTED]
http://mailman.lug.org.uk/mailman/listinfo/scottish
You may want to tar -cvpf foo.tar path/to/directory/
where c creates an empty tar
v tells you what its doing
p preserves permissions
f creates a file
you can also pipe it into stuff for example
tar -cvpf - /var |gzip|ssh
hth
David
On Fri, 2003-03-21 at 16:40, Allan Whiteford wrote:
On