Using 'find ... exec tar ' to archive recent files
$ rm /tmp/blue.tgz
$ touch /tmp/blue.tgz # to create an empty archive to append to??
$ find . -type f -newermt 2005-12-03 -not -iregex '. cache.' -not -regex '\.' -not -empty -exec tar Avzf /tmp/blue.tgz {} \;
The find command finds the files I want (I've verified by replacing exec with print) and should tar-zip-append to add each file to the tgz archive. In fact, however, the blue.tgz file remains empty.
Need another pair of eyeballs - can anyone spot what I'm doing wrong?
thanks - chap
867MHz Powerbook Mac OS X (10.4.3)
867MHz Powerbook, Mac OS X (10.4.2)