tar - exclude

Giorgos Keramidas keramidi at otenet.gr
Mon May 14 07:52:01 EEST 2001


On Mon, May 14, 2001 at 12:37:02AM +0300, Kwsths wrote:
> Mia erwthsh gia to tar . pws mporw na bgazw kapoia dirs?
> dinw --exclude file
> opoy sto file exw dhlwsei:
> dir1
> dir2
> 
> alla den ta e3airei...
> 
> dokimasa kai na dhlwsw olo to path px /tmp/dir alla tipota.
> 
> poy kanw la8os?

An diabaseis prosektika to man ual tou tar tha deis oti leei:

	--exclude FILE
		exclude file FILE

	-X, --exclude-from FILE
		exclude files listed in FILE

opote an thes na 'bgaleis' to arxeio hello.txt apo th lista uparxoun duo
tropoi:

	% tar --exclude hello.c  ...

h me to deutero tropo:

	% echo hello.c > exclusions
	% tar --exclude-from exclusions ...

Etsi opws to ekanes, eftiajes ena arxeio pou eixe mesa ta exclusions kai
eipes sto tar na `mhn sumperilabei auto to arxeio sto tarball'.  Me to
sketo --exclude to tar den tha diabasei ta periexomena tou arxeiou gia na
brei ta onomata twn excluded arxeiwn... auto einai douleia pou kanei to
option --exclude-from :)

--giorgos




More information about the Linux-greek-users mailing list