J jaymax Aug 7, 2009 #1 Is there a way of removing a group of files, e.g. a directory from a tar archive in FreeBSD? Disk not tape. tar xvf tarfile.tar --exclude pattern_in_dropfile_name tar xvf tarfile.tar --exclude unwanted/dropfile does not seem to work
Is there a way of removing a group of files, e.g. a directory from a tar archive in FreeBSD? Disk not tape. tar xvf tarfile.tar --exclude pattern_in_dropfile_name tar xvf tarfile.tar --exclude unwanted/dropfile does not seem to work
DutchDaemon Administrator Staff member Administrator Moderator Developer Aug 7, 2009 #2 You need to use "=" Code: $ mkdir bla $ touch bla/bla1 bla/bla2 $ tar cvzf bla.tar.gz bla/ a bla a bla/bla1 a bla/bla2 $ tar zxvf bla.tar.gz --exclude=bla1 x bla/ x bla/bla2
You need to use "=" Code: $ mkdir bla $ touch bla/bla1 bla/bla2 $ tar cvzf bla.tar.gz bla/ a bla a bla/bla1 a bla/bla2 $ tar zxvf bla.tar.gz --exclude=bla1 x bla/ x bla/bla2
OP J jaymax Aug 7, 2009 Thread Starter #3 Solved Much appreciated, apparently omitted in the man pages. This will work for now, anyway I was looking for something that would permanently delete them from the archives, the reverse of the -r or -u options Thanks again
Solved Much appreciated, apparently omitted in the man pages. This will work for now, anyway I was looking for something that would permanently delete them from the archives, the reverse of the -r or -u options Thanks again
DutchDaemon Administrator Staff member Administrator Moderator Developer Aug 7, 2009 #4 I don't think you can 'edit' an archive in place, just add/overwrite files.