Subject: Re: Tar and Find Problem
To: Torsten Schlueter <t.schlueter@gmx.de>
From: Zdenek Salvet <salvet@horn.ics.muni.cz>
List: netbsd-users
Date: 07/09/1998 09:18:46
> I was trying to update my Homepage when i noticed that it is not
> possible (for me) to put only those files in an tar archive which were
> changed.
>
> I tried the following:
>
> t-rex://usr/local/httpd/htdocs/ #find . -mtime 1 -print
>
> and the output were the files which are changed today.
>
> trying
> tar -cvzf webneu.tgz -T /tmp/webneu.files (after creating the file
> /tmp/webneu.files) or
> tar cf ~/webneu.tar `find . -mtime 1 -print`
> has the same result. The whole directory is added to the archive.
>
> Whats wrong with those commands?
Add --norecurse options to tar command line (default is archiving the
contents of directories).
--
Zdenek Salvet salvet@ics.muni.cz
----------------------------------------------------------------------------
If God had meant for us to be in the Army,
we would have been born with green, baggy skin.