[prev in list] [next in list] [prev in thread] [next in thread] 

List:       phorum-dev
Subject:    Re: [phorum-dev] Calling Tar Gurus
From:       Richard Davey <phorum () atari ! org>
Date:       1999-05-21 10:12:21
[Download RAW message or body]

Create a file which contains a list of files you want to exclude (notme.dat
in my example):

Then:

	tar cvf --directory /usr/phorum/htdocs --exclude notme.dat phorum-dev.tar *

--directory will replace the need for "cd /usr/phorum/htdocs" part of the
script

I would also suggest:

	tar cvfpz

the p will make sure all the files keep the current permissions (so might
save people having to chmod them depending on your system)

the z will gunzip the files before adding them to the archive.

Cheers,

Rich

> The script for tarring the dev code is broke on the new server.  Anybody
> got any ideas?  The zip works, and zip is in the same dir with tar.

> cd /usr/phorum/htdocs
> zip -q -r /usr/phorum/htdocs/downloads/phorum-dev.zip phorum-dev -x
> forums.inf forums.bak.inf
> tar -c --exclude forums.inf --exclude forums.bak.inf phorum-dev | gzip >
> /usr/phorum/htdocs/downloads/phorum-dev.tar.gz


---------------------------------------------------------------------
To unsubscribe, e-mail: phorum-dev-unsubscribe@phorum.org
For additional commands, e-mail: phorum-dev-help@phorum.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic